Home
last modified time | relevance | path

Searched refs:coercibleObject (Results 1 – 6 of 6) sorted by relevance

/third_party/node/deps/npm/node_modules/es-to-primitive/test/
Des6.js71 var coercibleObject = { valueOf: function () { return 3; }, toString: function () { return 42; } }; variable
85 …t.equal(toPrimitive(coercibleObject), coercibleObject.valueOf(), 'coercibleObject with no hint coe…
86 …t.equal(toPrimitive(coercibleObject, Number), coercibleObject.valueOf(), 'coercibleObject with hin…
87 …t.equal(toPrimitive(coercibleObject, String), coercibleObject.toString(), 'coercibleObject with hi…
113 var nullToPrimitive = { toString: coercibleObject.toString, valueOf: coercibleObject.valueOf };
115 …st.equal(toPrimitive(nullToPrimitive), toPrimitive(coercibleObject), 'object with no hint + null S…
116 …st.equal(toPrimitive(nullToPrimitive, Number), toPrimitive(coercibleObject, Number), 'object with …
117 …st.equal(toPrimitive(nullToPrimitive, String), toPrimitive(coercibleObject, String), 'object with …
Des2015.js71 var coercibleObject = { valueOf: function () { return 3; }, toString: function () { return 42; } }; variable
85 …t.equal(toPrimitive(coercibleObject), coercibleObject.valueOf(), 'coercibleObject with no hint coe…
86 …t.equal(toPrimitive(coercibleObject, Number), coercibleObject.valueOf(), 'coercibleObject with hin…
87 …t.equal(toPrimitive(coercibleObject, String), coercibleObject.toString(), 'coercibleObject with hi…
113 var nullToPrimitive = { toString: coercibleObject.toString, valueOf: coercibleObject.valueOf };
115 …st.equal(toPrimitive(nullToPrimitive), toPrimitive(coercibleObject), 'object with no hint + null S…
116 …st.equal(toPrimitive(nullToPrimitive, Number), toPrimitive(coercibleObject, Number), 'object with …
117 …st.equal(toPrimitive(nullToPrimitive, String), toPrimitive(coercibleObject, String), 'object with …
Des5.js48 var coercibleObject = { valueOf: function () { return 3; }, toString: function () { return 42; } }; variable
62 …t.equal(toPrimitive(coercibleObject), coercibleObject.valueOf(), 'coercibleObject with no hint coe…
63 …t.equal(toPrimitive(coercibleObject, String), coercibleObject.toString(), 'coercibleObject with hi…
64 …t.equal(toPrimitive(coercibleObject, Number), coercibleObject.valueOf(), 'coercibleObject with hin…
/third_party/node/deps/npm/node_modules/es-abstract/test/helpers/
Dvalues.js5 var coercibleObject = { valueOf: function () { return 3; }, toString: function () { return 42; } }; variable
9 var objects = [{}, coercibleObject, toStringOnlyObject, valueOfOnlyObject];
29 coercibleObject: coercibleObject, property
/third_party/node/deps/npm/node_modules/es-abstract/test/
Des5.js9 var coercibleObject = { valueOf: function () { return '3'; }, toString: function () { return 42; } … variable
21 var objects = [{}, coercibleObject, toStringOnlyObject, valueOfOnlyObject];
36 …st.equal(ES.ToPrimitive(coercibleObject), coercibleObject.valueOf(), 'coercibleObject coerces to v…
37 …st.equal(ES.ToPrimitive(coercibleObject, Number), coercibleObject.valueOf(), 'coercibleObject with…
38 …st.equal(ES.ToPrimitive(coercibleObject, String), coercibleObject.toString(), 'coercibleObject wit…
Dtests.js57 … st.equal(ES.ToPrimitive(v.coercibleObject), 3, 'coercibleObject with no hint coerces to valueOf');
59 …st.equal(ES.ToPrimitive(v.coercibleObject, Number), 3, 'coercibleObject with hint Number coerces t…
61 …st.equal(ES.ToPrimitive(v.coercibleObject, String), 42, 'coercibleObject with hint String coerces …
424 t.equal(3, ES.ToLength(v.coercibleObject), 'coercibleObject coerces to 3');