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

Function findFrameInInitiator

test/parallel/test-inspector-network-http2.js:120–125  ·  view source on GitHub ↗
(scriptName, initiator)

Source from the content-addressed store, hash-verified

118};
119
120function findFrameInInitiator(scriptName, initiator) {
121 const frame = initiator.stack.callFrames.find((it) => {
122 return it.url === scriptName;
123 });
124 return frame;
125}
126
127function verifyRequestWillBeSent({ method, params }, expectedUrl) {
128 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…