We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60aed92 commit 324adc2Copy full SHA for 324adc2
test/parallel/test-worker-no-sab.js
@@ -0,0 +1,17 @@
1
+// Flags: --no-harmony-sharedarraybuffer
2
+
3
+'use strict';
4
5
+const common = require('../common');
6
+const assert = require('assert');
7
+const { isMainThread, Worker } = require('worker_threads');
8
9
+// Regression test for https://github.com/nodejs/node/issues/39717.
10
11
+const w = new Worker(__filename);
12
13
+w.on('exit', common.mustCall((status) => {
14
+ assert.strictEqual(status, 2);
15
+}));
16
17
+if (!isMainThread) process.exit(2);
0 commit comments