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

Function checkPreformattedStack

deps/v8/test/mjsunit/wasm/asm-wasm-stack.js:10–17  ·  view source on GitHub ↗
(e, expected_lines)

Source from the content-addressed store, hash-verified

8filename = filename.replace(/\//g, '[/\\\\]');
9
10function checkPreformattedStack(e, expected_lines) {
11 print('preformatted stack: ' + e.stack);
12 var lines = e.stack.split('\n');
13 assertEquals(expected_lines.length, lines.length);
14 for (var i = 0; i < lines.length; ++i) {
15 assertMatches(expected_lines[i], lines[i], 'line ' + i);
16 }
17}
18
19function printCallsites(stack) {
20 print('callsite objects (size ' + stack.length + '):');

Callers 1

asm-wasm-stack.jsFile · 0.85

Calls 3

printFunction · 0.50
assertEqualsFunction · 0.50
splitMethod · 0.45

Tested by

no test coverage detected