Searched defs:valueOf (Results 1 - 16 of 16) sorted by relevance

/external/v8/test/mjsunit/regress/
H A Dregress-1327557.js28 var x = { valueOf: function() { throw "x"; } };
29 var y = { valueOf: function() { throw "y"; } };
/external/v8/test/mjsunit/
H A Dto_number_order.js33 v.valueOf = vv;
34 w.valueOf = ww;
51 var year = { valueOf: function() { x += 1; return 2007; } };
52 var month = { valueOf: function() { x += 2; return 2; } };
53 var date = { valueOf: function() { x += 3; return 4; } };
54 var hours = { valueOf: function() { x += 4; return 13; } };
55 var minutes = { valueOf: function() { x += 5; return 50; } };
56 var seconds = { valueOf: function() { x += 6; return 0; } };
57 var ms = { valueOf: function() { x += 7; return 999; } };
125 var a = { valueOf
[all...]
H A Ddouble-equals.js113 this.valueOf = function () { return this.value; };
H A Dmath-min-max.js53 o.valueOf = function() { return 1; };
86 o.valueOf = function() { return 3; };
H A Dnegate.js43 var x = { valueOf: function() { return 2; } };
44 var y = { valueOf: function() { return 3; } };
51 var v = { valueOf: function() { z+=2; return z; } };
52 var w = { valueOf: function() { z+=3; return z; } };
H A Darray-splice.js191 spliced = array.splice({valueOf: function() { return 1; }},
206 bad_start = { valueOf: function() { array.push(2*i); return -1; } };
207 bad_count = { valueOf: function() { array.push(2*i + 1); return 1; } };
H A Dconst.js53 const o = { valueOf: function() { valueOfCount++; return 42; } }
H A Djson.js30 n1.valueOf = function () { return alternative; };
33 n2.valueOf = null;
36 n3.valueOf = function () { return {}; };
39 n4.valueOf = function () {
H A Dstack-traces.js53 Nirk.prototype.valueOf = function () { FAIL; };
190 testTrace("testImplicitConversion", testImplicitConversion, ["at Nirk.valueOf"]);
/external/webkit/LayoutTests/fast/dom/Geolocation/resources/
H A Dargument-types.js27 ObjectThrowingException.prototype.valueOf = function() {
28 throw new Error('valueOf threw exception');
98 test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {maximumAge:objectThrowingException})', true, 'Error: valueOf threw exception');
109 test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeout:objectThrowingException})', true, 'Error: valueOf threw exception');
/external/webkit/JavaScriptCore/tests/mozilla/ecma_2/Statements/
H A Dtry-007.js27 throw EXCEPTION_STRING +": " + this.valueOf();
36 return this.valueOf();
62 this.valueOf = function () { return this.value; }
/external/v8/benchmarks/
H A Dbase.js57 BenchmarkResult.prototype.valueOf = function() {
/external/webkit/WebCore/bridge/c/
H A Dc_instance.cpp226 return valueOf(exec);
248 JSValue CInstance::valueOf(ExecState* exec) const function in class:JSC::Bindings::CInstance
/external/webkit/WebCore/bridge/jni/jsc/
H A DJavaInstanceJSC.cpp320 return valueOf(exec);
323 JSValue JavaInstance::valueOf(ExecState* exec) const function in class:JavaInstance
/external/webkit/WebCore/bridge/qt/
H A Dqt_instance.cpp250 return valueOf(exec);
308 JSValue QtInstance::valueOf(ExecState* exec) const function in class:JSC::Bindings::QtInstance
H A Dqt_pixmapruntime.cpp142 return inst->valueOf(exec);
240 return valueOf(exec);
244 JSValue QtPixmapInstance::valueOf(ExecState* exec) const function in class:JSC::Bindings::QtPixmapInstance

Completed in 155 milliseconds