MCPcopy Index your code
hub / github.com/nodejs/node / run

Method run

test/parallel/test-repl-preview.js:24–29  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

22 this.lines = [''];
23 }
24 run(data) {
25 for (const entry of data) {
26 this.emit('data', entry);
27 }
28 this.emit('data', '\n');
29 }
30 write(chunk) {
31 const chunkLines = chunk.toString('utf8').split('\n');
32 this.lines[this.lines.length - 1] += chunkLines[0];

Callers 15

testFunction · 0.45
test1Function · 0.45
test2Function · 0.45
test3Function · 0.45
test4Function · 0.45
test5Function · 0.45
test6Function · 0.45
getReplRunOutputFunction · 0.45

Calls 1

emitMethod · 0.45

Tested by 14

testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36