MCPcopy Create free account
hub / github.com/nodejs/node / printCallsites

Function printCallsites

deps/v8/test/mjsunit/wasm/asm-wasm-stack.js:19–27  ·  view source on GitHub ↗
(stack)

Source from the content-addressed store, hash-verified

17}
18
19function printCallsites(stack) {
20 print('callsite objects (size ' + stack.length + '):');
21 for (var i = 0; i < stack.length; ++i) {
22 var s = stack[i];
23 print(
24 ' [' + i + '] ' + s.getFunctionName() + ' (' + s.getFileName() + ':' +
25 s.getLineNumber() + ':' + s.getColumnNumber() + ')');
26 }
27}
28
29function checkCallsiteArray(stack, expected) {
30 assertEquals(expected.length, stack.length, 'stack size');

Callers 2

Calls 1

printFunction · 0.50

Tested by

no test coverage detected