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

Function printPop

modules/script/_bootstrap/debugger.js:594–606  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

592 down`;
593
594function printPop(c) {
595 if (c['return']) {
596 print('Value returned is:');
597 showDebuggeeValue(c['return'], {brief: true});
598 } else if (c['throw']) {
599 print('Frame terminated by exception:');
600 showDebuggeeValue(c['throw']);
601 print("(To rethrow it, type 'throw'.)");
602 lastExc = c['throw'];
603 } else {
604 print('No value returned.');
605 }
606}
607
608// Set |prop| on |obj| to |value|, but then restore its current value
609// when we next enter the repl.

Callers 1

stepPoppedFunction · 0.85

Calls 1

showDebuggeeValueFunction · 0.85

Tested by

no test coverage detected