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

Function locationToString

deps/v8/test/inspector/debugger/asm-js-stack.js:36–47  ·  view source on GitHub ↗
(callFrame)

Source from the content-addressed store, hash-verified

34Protocol.Runtime.evaluate({'expression': 'testFunction()'});
35
36function locationToString(callFrame) {
37 var res = {functionName: callFrame.functionName};
38 for (var attr in callFrame.functionLocation) {
39 if (attr == 'scriptId') continue;
40 res['function_'+attr] = callFrame.functionLocation[attr];
41 }
42 for (var attr in callFrame.location) {
43 if (attr == 'scriptId') continue;
44 res[attr] = callFrame.location[attr];
45 }
46 return JSON.stringify(res);
47}
48
49function logStackTrace(messageObject) {
50 var frames = messageObject.params.callFrames;

Callers 1

logStackTraceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected