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

Function saveExcursion

modules/script/_bootstrap/debugger.js:229–237  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

227
228
229function saveExcursion(fn) {
230 const tf = topFrame, ff = focusedFrame;
231 try {
232 return fn();
233 } finally {
234 topFrame = tf;
235 focusedFrame = ff;
236 }
237}
238
239// Evaluate @expr in the current frame, logging and suppressing any exceptions
240function evalInFrame(expr) {

Callers 4

evalInFrameFunction · 0.85
doPrintFunction · 0.85
hitMethod · 0.85
debugger.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected