Skip to content

Commit 16cc763

Browse files
author
Gabriel Schulhof
committed
add --experimental-worker
1 parent 7370b7f commit 16cc763

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
"prebenchmark": "node-gyp rebuild -C benchmark",
282282
"benchmark": "node benchmark",
283283
"pretest": "node-gyp rebuild -C test",
284-
"test": "node test",
284+
"test": "node --experimental-worker test",
285285
"predev": "node-gyp rebuild -C test --debug",
286286
"dev": "node test",
287287
"predev:incremental": "node-gyp configure build -C test --debug",

test/napi_child.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
const child_process = require('child_process');
33

44
const majorNodeVersion = process.versions.node.split('.')[0];
5-
defaultArgs = [ '--expose-gc', '--no-concurrent-array-buffer-freeing' ];
5+
defaultArgs = [
6+
'--expose-gc',
7+
'--experimental-worker',
8+
'--no-concurrent-array-buffer-freeing'
9+
];
610
if (majorNodeVersion >= 14) {
711
defaultArgs.push('--no-concurrent-array-buffer-sweeping');
812
}

0 commit comments

Comments
 (0)