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

Function test

deps/v8/test/mjsunit/async-stack-traces.js:18–26  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

16 }
17
18 async function test(f) {
19 try {
20 await f(1);
21 assertUnreachable();
22 } catch (e) {
23 assertInstanceof(e, Error);
24 assertMatches(/Error.+at two.+at async one.+at async test/ms, e.stack);
25 }
26 }
27
28 assertPromiseResult((async () => {
29 %PrepareFunctionForOptimization(one);

Callers 1

Calls 5

assertUnreachableFunction · 0.85
assertInstanceofFunction · 0.85
fFunction · 0.70
SymbolFunction · 0.70
resolveMethod · 0.45

Tested by

no test coverage detected