Home
last modified time | relevance | path

Searched refs:workerData (Results 1 – 25 of 34) sorted by relevance

12

/third_party/node/test/common/wpt/
Dworker.js4 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/
Dtest-worker-workerdata-messageport.js11 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
Dtest-worker-process-env.js5 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') {
Dtest-worker-nested-on-process-exit.js4 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]++);
Dtest-worker-beforeexit-throw-exit.js8 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);
Dtest-worker-http2-generic-streams-terminate.js9 const { Worker, workerData } = require('worker_threads');
15 if (!workerData) {
17 const worker = new Worker(__filename, { workerData: { counter } }); property
22 const { counter } = workerData;
Dtest-worker-process-env-shared.js4 const { Worker, parentPort, SHARE_ENV, workerData } = require('worker_threads');
6 if (!workerData) {
11 workerData: 'runInWorker', property
21 assert.strictEqual(workerData, 'runInWorker');
Dtest-worker-terminate-source-map.js9 const { Worker, workerData, parentPort } = require('worker_threads');
11 if (!workerData) {
17 const w = new Worker(__filename, { workerData: { callCount } }); property
25 const { callCount } = workerData;
Dtest-async-hooks-worker-asyncfn-terminate-4.js12 const workerData = new Int32Array(new SharedArrayBuffer(4)); constant
22 `, { eval: true, workerData }); field
24 w.on('exit', common.mustCall(() => assert.strictEqual(workerData[0], 0)));
Dtest-worker-mjs-workerdata.js7 const workerData = 'Hello from main thread'; constant
10 workerData field
14 assert.strictEqual(message, workerData);
Dtest-worker-cjs-workerdata.js7 const workerData = 'Hello from main thread'; constant
10 workerData field
14 assert.strictEqual(message, workerData);
Dtest-crypto-worker-thread.js10 const { Worker, isMainThread, workerData } = require('worker_threads');
14 new Worker(__filename, { workerData: key }); property
16 console.log(workerData);
Dtest-worker-process-argv.js4 const { Worker, isMainThread, workerData } = require('worker_threads');
17 workerData: 'assert-argv' property
44 } else if (workerData === 'assert-argv') {
Dtest-inspector-heap-allocation-tracker.js9 const { Worker, workerData } = require('worker_threads');
28 if (workerData === 'stopEarly')
45 new Worker(__filename, { workerData: 'stopEarly' }); property
Dtest-inspector-connect-main-thread.js10 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) {
Dtest-inspector-workers-flat-list.js6 const { Worker, isMainThread, parentPort, workerData } =
9 if (isMainThread || workerData !== 'launched by test') {
45 const worker = new Worker(__filename, { workerData: 'launched by test' }); property
Dtest-trace-exit.js6 const { Worker, isMainThread, workerData } = require('worker_threads');
17 const worker = new Worker(__filename, { workerData: variant }); property
25 if (workerData === 'worker-thread-exit') {
Dtest-worker-debug.js11 Worker, isMainThread, parentPort, workerData
25 if (workerData === 1) {
28 } else if (workerData === 2) {
66 const worker = new Worker(__filename, { workerData: id }); property
Dtest-worker-invalid-workerdata.js12 workerData: { fn: () => {} } property
/third_party/node/test/common/
Drequire-as.js15 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/
Dtest.js4 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/
Dworker-data.mjs1 import { workerData, parentPort } from 'worker_threads';
3 parentPort.postMessage(workerData);
Dworker-data.cjs1 const { workerData, parentPort } = require('worker_threads');
3 parentPort.postMessage(workerData);
Dworker-preload.js3 workerData,
/third_party/node/lib/internal/main/
Dworker_thread.js111 workerData,
134 publicWorker.workerData = workerData;

12