Skip to content

Commit d0409cb

Browse files
committed
refactor: use "forEach" instead of "for of" due to rollup not supporting it
1 parent 8f66c8b commit d0409cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/devtool.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function transformPathsToObjectTree (getters) {
246246
if (path.length > 1) {
247247
let target = result
248248
const leafKey = path.pop()
249-
for (const p of path) {
249+
path.forEach((p) => {
250250
if (!target[p]) {
251251
target[p] = {
252252
_custom: {
@@ -258,7 +258,7 @@ function transformPathsToObjectTree (getters) {
258258
}
259259
}
260260
target = target[p]._custom.value
261-
}
261+
})
262262
target[leafKey] = canThrow(() => getters[key])
263263
} else {
264264
result[key] = canThrow(() => getters[key])

0 commit comments

Comments
 (0)