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

Function TestNonPrimitive

deps/v8/test/mjsunit/compiler/compare.js:77–83  ·  view source on GitHub ↗
(order, f)

Source from the content-addressed store, hash-verified

75
76// Test non-primitive values and watch for valueOf call order.
77function TestNonPrimitive(order, f) {
78 var result = "";
79 var x = { valueOf: function() { result += "x"; } };
80 var y = { valueOf: function() { result += "y"; } };
81 f(x, y);
82 assertEquals(order, result);
83}
84
85TestNonPrimitive("xy", MaxLT);
86TestNonPrimitive("xy", MaxLE);

Callers 1

compare.jsFile · 0.85

Calls 2

fFunction · 0.70
assertEqualsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…