Skip to content

Commit 499a859

Browse files
committed
⚒ fix for tests on node 8.1.0
1 parent 10a160c commit 499a859

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/tester.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ RuleTester.setDefaultConfig({
2525
ecmaVersion,
2626
sourceType: "script",
2727
},
28-
globals: {
29-
...builtin,
30-
AggregateError: "readonly",
31-
FinalizationRegistry: "readonly",
32-
WeakRef: "readonly",
33-
},
28+
globals: Object.assign(
29+
{
30+
AggregateError: "readonly",
31+
FinalizationRegistry: "readonly",
32+
WeakRef: "readonly",
33+
},
34+
builtin
35+
),
3436
})
3537
RuleTester.isSupported = targetEcmaVersion => targetEcmaVersion <= ecmaVersion
3638

0 commit comments

Comments
 (0)