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

Function make_call

deps/v8/tools/windbg.js:292–305  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

290 Wrappers around V8's printing functions and other utils for live-debugging
291=============================================================================*/
292function make_call(fn) {
293 if (!supports_call_command()) {
294 print("ERROR: This command is supported in live sessions only!");
295 return;
296 }
297
298 // .call resets current frame to the top one, so have to manually remember
299 // and restore it after making the call.
300 let curframe = host.namespace.Debugger.State.DebuggerVariables.curframe;
301 let ctl = host.namespace.Debugger.Utility.Control;
302 let output = ctl.ExecuteCommand(`.call ${fn};g`);
303 curframe.SwitchTo();
304 return output;
305}
306
307function print_object(address) {
308 let output = make_call(`_v8_internal_Print_Object(${decomp(address)})`);

Callers 2

print_objectFunction · 0.85
print_js_stackFunction · 0.85

Calls 2

supports_call_commandFunction · 0.85
printFunction · 0.70

Tested by

no test coverage detected