Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit d5e64f8

Browse files
committed
Update dev-dependencies
1 parent 4775b89 commit d5e64f8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"virtual-dom": "^2.0.0",
6868
"vue": "^2.0.0",
6969
"vue-server-renderer": "^2.0.0",
70-
"xo": "^0.35.0"
70+
"xo": "^0.38.0"
7171
},
7272
"scripts": {
7373
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",

test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,12 @@ test('hast-to-hyperscript', function (t) {
486486
}
487487

488488
function remove(node) {
489+
var index = -1
489490
delete node.context
490491
if (node.children) {
491-
node.children.forEach(remove)
492+
while (++index < node.children.length) {
493+
remove(node.children[index])
494+
}
492495
}
493496
}
494497
})

0 commit comments

Comments
 (0)