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

Function same_value

deps/v8/test/wasm-js/third_party/testharness.js:1143–1153  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

1141 expose(assert_false, "assert_false");
1142
1143 function same_value(x, y) {
1144 if (y !== y) {
1145 //NaN case
1146 return x !== x;
1147 }
1148 if (x === 0 && y === 0) {
1149 //Distinguish +0 and -0
1150 return 1/x === 1/y;
1151 }
1152 return x === y;
1153 }
1154
1155 function assert_equals(actual, expected, description)
1156 {

Callers 7

assert_equalsFunction · 0.70
assert_not_equalsFunction · 0.70
check_equalFunction · 0.70
assert_array_equalsFunction · 0.70
assert_class_stringFunction · 0.70
assert_readonlyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected