mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
Signed-off-by: avivkeller <me@aviv.sh> PR-URL: https://github.com/nodejs/node/pull/65323 Refs: https://github.com/nodejs/node/pull/64894 Refs: https://github.com/nodejs/node/issues/43583 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
14 lines
442 B
JavaScript
14 lines
442 B
JavaScript
'use strict';
|
|
|
|
// Regression test: the Web Worker API is enabled by default and must not
|
|
// require the `--experimental-web-worker` flag.
|
|
// Refs: https://github.com/nodejs/node/pull/65323
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const { Worker: WorkerThread } = require('worker_threads');
|
|
|
|
assert.strictEqual(typeof Worker, 'function');
|
|
assert.strictEqual(Worker.name, 'Worker');
|
|
assert.notStrictEqual(Worker, WorkerThread);
|