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

Function testThrows

deps/v8/test/mjsunit/global-undefined.js:16–23  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

14}
15
16function testThrows(f) {
17 %PrepareFunctionForOptimization(f);
18 assertThrows(f);
19 assertThrows(f);
20 %OptimizeFunctionOnNextCall(f);
21 assertThrows(f);
22 assertThrows(f);
23}
24
25function f1() { return undefined; }
26test(void 0, f1);

Callers 1

Calls 1

assertThrowsFunction · 0.50

Tested by

no test coverage detected