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

Function findFrameInInitiator

test/parallel/test-inspector-network-fetch.js:78–83  ·  view source on GitHub ↗
(scriptName, initiator)

Source from the content-addressed store, hash-verified

76};
77
78function findFrameInInitiator(scriptName, initiator) {
79 const frame = initiator.stack.callFrames.find((it) => {
80 return it.url === scriptName;
81 });
82 return frame;
83}
84
85function verifyRequestWillBeSent({ method, params }, expect) {
86 assert.strictEqual(method, 'Network.requestWillBeSent');

Callers 1

verifyRequestWillBeSentFunction · 0.70

Calls 1

findMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…