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

Function add_minus_zero

deps/v8/test/mjsunit/maglev/constant-folding-float64.js:41–43  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

39
40// Add leads to different special values than sub/mul/div.
41function add_minus_zero(n) {
42 return n + -0.0;
43}
44for (let [special_value, expected_output] of [[undefined, NaN],
45 ["abcd", "abcd0"],
46 ["0", "00"],

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected