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

Function evalCommand

test/parallel/test-debugger-run-restart-init.js:42–57  ·  view source on GitHub ↗
(repl, command)

Source from the content-addressed store, hash-verified

40}
41
42function evalCommand(repl, command) {
43 return new Promise((resolve, reject) => {
44 repl.eval(
45 command,
46 repl.context,
47 'debugger-repl-test',
48 (error, result) => {
49 if (error) {
50 reject(error);
51 } else {
52 resolve(result);
53 }
54 },
55 );
56 });
57}
58
59async function assertCommandWaitsForInit(repl, command, gate, calls) {
60 let settled = false;

Callers 1

Calls 3

rejectFunction · 0.50
resolveFunction · 0.50
evalMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…