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

Function test

deps/v8/test/mjsunit/es6/math-fround.js:29–38  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

27%OptimizeFunctionOnNextCall(opt);
28
29function test(f) {
30 assertEquals("Infinity", String(1/f(0)));
31 assertEquals("-Infinity", String(1/f(-0)));
32 assertEquals("Infinity", String(f(Infinity)));
33 assertEquals("-Infinity", String(f(-Infinity)));
34 assertEquals("Infinity", String(f(1E200)));
35 assertEquals("-Infinity", String(f(-1E200)));
36 assertEquals("Infinity", String(1/f(1E-300)));
37 assertEquals("-Infinity", String(1/f(-1E-300)));
38}
39
40test(opt);
41test(unopt);

Callers 1

math-fround.jsFile · 0.70

Calls 3

StringClass · 0.85
fFunction · 0.70
assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…