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

Function test

deps/v8/test/mjsunit/compare-known-objects.js:58–83  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

56}
57
58function test(a, b) {
59 // Check CompareIC for equality of known objects.
60 assertTrue(eq(a, a));
61 assertTrue(eq(b, b));
62 assertFalse(eq(a, b));
63 // Check CompareIC for strict equality of known objects.
64 assertTrue(eq_strict(a, a));
65 assertTrue(eq_strict(b, b));
66 assertFalse(eq_strict(a, b));
67 // Check CompareIC for less than or equal of known objects.
68 assertTrue(le(a, a));
69 assertTrue(le(a, b));
70 assertTrue(le(b, a));
71 // Check CompareIC for less than of known objects.
72 assertFalse(lt(a, a));
73 assertFalse(lt(a, b));
74 assertFalse(lt(b, a));
75 // Check CompareIC for greater than or equal of known objects.
76 assertTrue(ge(a, a));
77 assertTrue(ge(a, b));
78 assertTrue(ge(b, a));
79 // Check CompareIC for greater than of known objects.
80 assertFalse(gt(a, a));
81 assertFalse(gt(a, b));
82 assertFalse(gt(b, a));
83}
84
85function O(){};
86O.prototype.t = function() {}

Callers 1

Calls 8

assertTrueFunction · 0.70
eqFunction · 0.70
eq_strictFunction · 0.70
leFunction · 0.70
ltFunction · 0.70
geFunction · 0.70
gtFunction · 0.70
assertFalseFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…