/third_party/node/test/common/wpt/ |
D | worker.js | 4 const { parentPort, workerData } = require('worker_threads'); 6 const { ResourceLoader } = require(workerData.wptRunner); 7 const resource = new ResourceLoader(workerData.wptPath); 19 return resource.read(workerData.filename, file, true); 22 if (workerData.initScript) { 23 runInThisContext(workerData.initScript); 26 runInThisContext(workerData.harness.code, { 27 filename: workerData.harness.filename 51 for (const scriptToRun of workerData.scriptsToRun) {
|
/third_party/node/test/parallel/ |
D | test-worker-workerdata-messageport.js | 11 const workerData = { mesage: channel.port1 }; variable 17 new Worker(`${meowScript}`, { eval: true, workerData, transferList }); property 24 const workerData = { message: channel1.port1, message2: channel2.port1 }; variable 26 new Worker(`${meowScript}`, { eval: true, workerData, transferList }); property 37 workerData: uint8Array, property 51 const workerData = { message: channel1.port1, message2: channel2.port1 }; variable 54 workerData, property
|
D | test-worker-process-env.js | 5 const { Worker, workerData } = require('worker_threads'); 9 if (!workerData && process.argv[2] !== 'child') { 13 new Worker(__filename, { workerData: 'runInWorker' }) property 22 workerData: 'resetEnv', property 35 } else if (workerData === 'runInWorker') { 48 } else if (workerData === 'resetEnv') {
|
D | test-worker-nested-on-process-exit.js | 4 const { Worker, workerData } = require('worker_threads'); 9 if (workerData === null) { 11 const w = new Worker(__filename, { workerData: nestedWorkerExitCounter }); property 18 nestedWorker.on('exit', () => workerData[0]++);
|
D | test-worker-beforeexit-throw-exit.js | 8 const workerData = new Uint8Array(new SharedArrayBuffer(2)); constant 18 `, { eval: true, workerData }); field 26 assert.strictEqual(workerData[0], 100); 27 assert.strictEqual(workerData[1], 200);
|
D | test-worker-http2-generic-streams-terminate.js | 9 const { Worker, workerData } = require('worker_threads'); 15 if (!workerData) { 17 const worker = new Worker(__filename, { workerData: { counter } }); property 22 const { counter } = workerData;
|
D | test-worker-process-env-shared.js | 4 const { Worker, parentPort, SHARE_ENV, workerData } = require('worker_threads'); 6 if (!workerData) { 11 workerData: 'runInWorker', property 21 assert.strictEqual(workerData, 'runInWorker');
|
D | test-worker-terminate-source-map.js | 9 const { Worker, workerData, parentPort } = require('worker_threads'); 11 if (!workerData) { 17 const w = new Worker(__filename, { workerData: { callCount } }); property 25 const { callCount } = workerData;
|
D | test-async-hooks-worker-asyncfn-terminate-4.js | 12 const workerData = new Int32Array(new SharedArrayBuffer(4)); constant 22 `, { eval: true, workerData }); field 24 w.on('exit', common.mustCall(() => assert.strictEqual(workerData[0], 0)));
|
D | test-worker-mjs-workerdata.js | 7 const workerData = 'Hello from main thread'; constant 10 workerData field 14 assert.strictEqual(message, workerData);
|
D | test-worker-cjs-workerdata.js | 7 const workerData = 'Hello from main thread'; constant 10 workerData field 14 assert.strictEqual(message, workerData);
|
D | test-crypto-worker-thread.js | 10 const { Worker, isMainThread, workerData } = require('worker_threads'); 14 new Worker(__filename, { workerData: key }); property 16 console.log(workerData);
|
D | test-worker-process-argv.js | 4 const { Worker, isMainThread, workerData } = require('worker_threads'); 17 workerData: 'assert-argv' property 44 } else if (workerData === 'assert-argv') {
|
D | test-inspector-heap-allocation-tracker.js | 9 const { Worker, workerData } = require('worker_threads'); 28 if (workerData === 'stopEarly') 45 new Worker(__filename, { workerData: 'stopEarly' }); property
|
D | test-inspector-connect-main-thread.js | 10 const { isMainThread, parentPort, Worker, workerData } = 13 if (!workerData) { 47 workerData: { skipChild, sharedBuffer } property 89 const buf = new Uint8Array(workerData.sharedBuffer); 171 } else if (workerData.skipChild) {
|
D | test-inspector-workers-flat-list.js | 6 const { Worker, isMainThread, parentPort, workerData } = 9 if (isMainThread || workerData !== 'launched by test') { 45 const worker = new Worker(__filename, { workerData: 'launched by test' }); property
|
D | test-trace-exit.js | 6 const { Worker, isMainThread, workerData } = require('worker_threads'); 17 const worker = new Worker(__filename, { workerData: variant }); property 25 if (workerData === 'worker-thread-exit') {
|
D | test-worker-debug.js | 11 Worker, isMainThread, parentPort, workerData 25 if (workerData === 1) { 28 } else if (workerData === 2) { 66 const worker = new Worker(__filename, { workerData: id }); property
|
D | test-worker-invalid-workerdata.js | 12 workerData: { fn: () => {} } property
|
/third_party/node/test/common/ |
D | require-as.js | 15 const { Worker, isMainThread, workerData } = require('worker_threads'); 20 workerData: process.argv[3] property 26 require(workerData);
|
/third_party/node/test/node-api/test_worker_terminate/ |
D | test.js | 4 const { Worker, isMainThread, workerData } = require('worker_threads'); 13 const worker = new Worker(__filename, { workerData: { counter } }); property 21 const { counter } = workerData;
|
/third_party/node/test/fixtures/ |
D | worker-data.mjs | 1 import { workerData, parentPort } from 'worker_threads'; 3 parentPort.postMessage(workerData);
|
D | worker-data.cjs | 1 const { workerData, parentPort } = require('worker_threads'); 3 parentPort.postMessage(workerData);
|
D | worker-preload.js | 3 workerData,
|
/third_party/node/lib/internal/main/ |
D | worker_thread.js | 111 workerData, 134 publicWorker.workerData = workerData;
|