MCPcopy Create free account
hub / github.com/GNOME/gjs / willBeCaught

Function willBeCaught

modules/script/_bootstrap/debugger.js:1040–1047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1038 return undefined;
1039
1040 const willBeCaught = currentFrame => {
1041 while (currentFrame) {
1042 if (currentFrame.script.isInCatchScope(currentFrame.offset))
1043 return true;
1044 currentFrame = currentFrame.older;
1045 }
1046 return false;
1047 };
1048
1049 if (options.ignoreCaughtExceptions && willBeCaught(frame))
1050 return undefined;

Callers 1

debugger.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected