Home
last modified time | relevance | path

Searched defs:valueOf (Results 1 – 25 of 128) sorted by relevance

123456

/third_party/jerryscript/tests/jerry/es2015/
Dmath-functions-tonumber-rule2.js16 var a = {valueOf: function() { str += "a"; return 1;}}; method
17 var b = {valueOf: function() { str += "b"; return NaN;}}; method
18 var c = {valueOf: function() { str += "c"; return 2;}}; method
19 var d = {valueOf: function() { str += "d"; return Infinity;}}; method
20 var e = {valueOf: function() { str += "e"; return 3;}}; method
Dbuiltin-prototypes.js43 Boolean.prototype.valueOf(); method in Boolean
50 Number.prototype.valueOf(); method in Number
57 Date.prototype.valueOf(); method in Date
Dsymbol-prototype-valueof.js17 Symbol.prototype.valueOf.call ('NonSymbolValue'); method in Symbol
24 Symbol.prototype.valueOf.call ({}); method in Symbol
Dregression-test-issue-2181.js19 var start = { valueOf : function ( ) { throw error; } }; method
20 var end = { valueOf : function ( ) { } }; method
Dregression-test-issue-3637.js16 var b = a.slice(0, { valueOf: function(){ a.length = 0; return 100; } }); method
22 var d = c.slice(0, { valueOf: function(){ c.length = 0; return 100; } }); method
Darray-prototype-copywithin.js94 valueOf: function() { method
104 valueOf: function() { method
114 valueOf: function() { method
/third_party/node/deps/npm/node_modules/es-to-primitive/test/
Des6.js71 var coercibleObject = { valueOf: function () { return 3; }, toString: function () { return 42; } }; method
72 var valueOfOnlyObject = { valueOf: function () { return 4; }, toString: function () { return {}; } … method
73 var toStringOnlyObject = { valueOf: function () { return {}; }, toString: function () { return 7; }… method
75 valueOf: function () { return function valueOfFn() {}; }, method
78 var uncoercibleObject = { valueOf: function () { return {}; }, toString: function () { return {}; }… method
80 valueOf: function () { return function valueOfFn() {}; }, method
106 var overriddenObject = { toString: st.fail, valueOf: st.fail }; property
113 var nullToPrimitive = { toString: coercibleObject.toString, valueOf: coercibleObject.valueOf }; property
120 var nonFunctionToPrimitive = { toString: sst.fail, valueOf: sst.fail }; property
124 var uncoercibleToPrimitive = { toString: sst.fail, valueOf: sst.fail }; property
[all …]
Des2015.js71 var coercibleObject = { valueOf: function () { return 3; }, toString: function () { return 42; } }; method
72 var valueOfOnlyObject = { valueOf: function () { return 4; }, toString: function () { return {}; } … method
73 var toStringOnlyObject = { valueOf: function () { return {}; }, toString: function () { return 7; }… method
75 valueOf: function () { return function valueOfFn() {}; }, method
78 var uncoercibleObject = { valueOf: function () { return {}; }, toString: function () { return {}; }… method
80 valueOf: function () { return function valueOfFn() {}; }, method
106 var overriddenObject = { toString: st.fail, valueOf: st.fail }; property
113 var nullToPrimitive = { toString: coercibleObject.toString, valueOf: coercibleObject.valueOf }; property
120 var nonFunctionToPrimitive = { toString: sst.fail, valueOf: sst.fail }; property
124 var uncoercibleToPrimitive = { toString: sst.fail, valueOf: sst.fail }; property
[all …]
Des5.js48 var coercibleObject = { valueOf: function () { return 3; }, toString: function () { return 42; } }; method
49 var valueOfOnlyObject = { valueOf: function () { return 4; }, toString: function () { return {}; } … method
50 var toStringOnlyObject = { valueOf: function () { return {}; }, toString: function () { return 7; }… method
52 valueOf: function () { return function valueOfFn() {}; }, method
55 var uncoercibleObject = { valueOf: function () { return {}; }, toString: function () { return {}; }… method
57 valueOf: function () { return function valueOfFn() {}; }, method
/third_party/jerryscript/tests/jerry/
Dmath-functions-tonumber-rule.js16 var a = {valueOf: function() { str += "a"; return 1;}}; method
17 var b = {valueOf: function() { str += "b"; return NaN;}}; method
18 var c = {valueOf: function() { str += "c"; return 2;}}; method
Darray-prototype-indexof.js54 valueOf: function () { method
93 valueOf: function() { method
103 valueOf: function() { method
113 valueOf: function() { method
Darray-prototype-lastindexof.js76 valueOf: function() { method
86 valueOf: function() { method
96 valueOf: function() { method
Dregression-test-issue-3779.js17 valueOf: function() { method
26 valueOf: function() { method
Darray-prototype-slice.js166 valueOf: function() { method
176 valueOf: function() { method
186 valueOf: function() { method
/third_party/typescript/tests/baselines/reference/
DobjectTypeHidingMembersOfObject.js5 valueOf() { } method in C
19 valueOf: () => { } method
35 C.prototype.valueOf = function () { }; method in C
43 valueOf: function () { } method
DobjectTypeHidingMembersOfExtendedObject.js16 valueOf() { } method in C
40 valueOf: () => { }, method
88 C.prototype.valueOf = function () { }; method in C
102 valueOf: function () { }, method
DtypeInferenceLiteralUnion.js22 public valueOf() { method in NumCoercible
48 NumCoercible.prototype.valueOf = function () { method in NumCoercible
/third_party/jerryscript/tests/jerry-test-suite/11/11.05/11.05.03/
D11.05.03-024.js16 valueOf: function () { method
21 valueOf: function () { method
D11.05.03-025.js16 valueOf: function () { method
21 valueOf: function () { method
/third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.01/
D11.06.01-015.js16 valueOf: function () { method
25 valueOf: function () { method
/third_party/jerryscript/tests/jerry/es5.1/
Dregression-test-issue-3637.js16 var b = a.slice(0, { valueOf: function(){ a.length = 0; return 100; } }); method
22 var d = c.slice(0, { valueOf: function(){ c.length = 0; return 100; } }); method
/third_party/typescript/tests/cases/compiler/
DtypeInferenceLiteralUnion.ts11 valueOf(): number; method
21 public valueOf() { method in NumCoercible
/third_party/typescript/tests/cases/conformance/types/members/
DobjectTypeHidingMembersOfObject.ts4 valueOf() { } method in C
11 valueOf(): void; method
/third_party/node/deps/npm/node_modules/es-abstract/test/helpers/
Dvalues.js5 var coercibleObject = { valueOf: function () { return 3; }, toString: function () { return 42; } }; method
6 var valueOfOnlyObject = { valueOf: function () { return 4; }, toString: function () { return {}; } … method
7 var toStringOnlyObject = { valueOf: function () { return {}; }, toString: function () { return 7; }… method
8 var uncoercibleObject = { valueOf: function () { return {}; }, toString: function () { return {}; }… method
/third_party/node/deps/npm/node_modules/is-symbol/test/
Dindex.js43 var fakeSymbol = { valueOf: function () { return Symbol('foo'); } }; method
49 var fakeSymbol = { valueOf: function () { return Symbol('foo'); } }; method
52 var notSoFakeSymbol = { valueOf: function () { return 42; } }; method

123456