Skip to content

Commit 489fa03

Browse files
committed
test: add a SharedArrayBuffer worker test
1 parent 60aed92 commit 489fa03

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Flags: --no-harmony-sharedarraybuffer
2+
3+
'use strict';
4+
5+
const common = require('../common');
6+
const { Worker } = require('worker_threads');
7+
8+
// Regression test for https://github.com/nodejs/node/issues/39717.
9+
10+
const w = new Worker(__filename);
11+
12+
w.on('exit', common.mustCall((status) => {
13+
assert.strictEqual(status, 0);
14+
}));

0 commit comments

Comments
 (0)