MCPcopy Create free account
hub / github.com/nodejs/node / start

Function start

deps/v8/test/test262/harness-agent.js:75–83  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

73
74var agent = {
75 start(script) {
76 if (i32a === null) {
77 i32a = new Int32Array(new SharedArrayBuffer(256));
78 }
79 var w = new Worker(workerScript(script), {type: 'string'});
80 w.index = workers.length;
81 w.postMessage({kind: 'start', i32a: i32a, index: w.index});
82 workers.push(w);
83 },
84
85 broadcast(sab, id) {
86 if (!(sab instanceof SharedArrayBuffer)) {

Callers

nothing calls this directly

Calls 3

postMessageMethod · 0.95
workerScriptFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected