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

Function testThrows

deps/v8/test/mjsunit/global-infinity-strict.js:17–24  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

assertThrowsFunction · 0.50

Tested by

no test coverage detected