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

Function findFrameInInitiator

test/parallel/test-inspector-network-websocket.js:23–28  ·  view source on GitHub ↗
(regex, initiator)

Source from the content-addressed store, hash-verified

21});
22
23function findFrameInInitiator(regex, initiator) {
24 const frame = initiator.stack.callFrames.find((it) => {
25 return regex.test(it.url);
26 });
27 return frame;
28}
29
30async function test() {
31 await session.post('Network.enable');

Callers 1

testFunction · 0.70

Calls 2

findMethod · 0.65
testMethod · 0.45

Tested by 1

testFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…