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

Function createGate

test/parallel/test-debugger-run-restart-init.js:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11const createRepl = require('internal/debugger/inspect_repl');
12
13function createGate() {
14 let resolve;
15 const promise = new Promise((res) => {
16 resolve = res;
17 });
18 return { promise, resolve };
19}
20
21function createAgent(domain, calls, gates) {
22 const agent = new EventEmitter();

Calls

no outgoing calls

Tested by

no test coverage detected