Searched refs:prototype (Results 1 - 25 of 1100) sorted by relevance

1234567891011>>

/external/v8/test/mjsunit/regress/
H A Dregress-1062422.js29 Number.prototype.__proto__ = String.prototype;
H A Dregress-1107.js31 Object.prototype.__defineGetter__(0, function(){});
H A Dregress-842.js28 // 842 describes a scenario where Object.prototype or Array.prototype is
32 Array.prototype.myfunc = function() {};
33 Array.prototype[10] = 42;
34 Array.prototype.length = 3000;
H A Dregress-1121.js30 // Test that changing Array.prototype.__proto__ keeps Array functions working.
32 Array.prototype.__proto__ = null;
H A Dregress-1151.js32 __defineSetter__['prototype']
35 eval['prototype'] = {};
38 // on the actual prototype set using __proto__ on objects that has the
41 f.prototype = 43;
45 assertEquals(__defineGetter__.prototype, 43);
48 __defineGetter__.prototype = "foo";
49 assertEquals(__defineGetter__.prototype, "foo");
H A Dregress-1447.js28 [0].forEach(function(){ Object.freeze(Array.prototype.forEach); });
29 [0].every(function(){ Object.seal(Array.prototype.every); });
33 [0].forEach(function(){ Object.freeze(Array.prototype.forEach); });
34 [0].every(function(){ Object.seal(Array.prototype.every); });
H A Dregress-341.js33 F.prototype = 1;
H A Dregress-877615.js28 Number.prototype.toLocaleString = function() { return 'invalid'; };
31 Number.prototype.toLocaleString = 'invalid';
34 delete Number.prototype.toLocaleString;
35 Number.prototype.toString = function() { return 'invalid' };
H A Dregress-1218.js28 // Builtin functions should not have prototype objects.
29 assertFalse(Error.prototype.toString.hasOwnProperty("prototype"));
H A Dregress-1365.js36 var valueOf = Object.prototype.valueOf;
37 var hasOwnProperty = Object.prototype.hasOwnProperty;
42 assertEquals(Object.prototype, Object.prototype.valueOf());
46 %OptimizeFunctionOnNextCall(Object.prototype.valueOf);
47 Object.prototype.valueOf();
49 assertEquals(Object.prototype, Object.prototype.valueOf());
54 var valueOf = Object.prototype.valueOf;
55 var hasOwnProperty = Object.prototype
[all...]
H A Dregress-900966.js29 String.prototype[10] = 'x';
44 Number.prototype[11] = 'y';
48 Boolean.prototype[12] = 'z';
H A Dregress-1172.js29 // function's prototype even in the presence of JS accessors.
33 Object.prototype.__defineGetter__('constructor', function() { throw 42; });
36 assertSame(f, f.prototype.constructor);
H A Dregress-1403.js31 Object.prototype.__proto__ = { __proto__: null };
35 Array.prototype.__proto__ = { __proto__: null };
H A Dregress-192.js37 Object.prototype.__defineGetter__("x", function() {});
38 Object.prototype.__defineSetter__("y",
/external/v8/test/message/
H A Doverwritten-builtins.js28 String.prototype.split = function() { return "SPLIT ERROR"; };
29 Array.prototype.join = function() { return []; };
/external/v8/test/mjsunit/
H A Dfunction-call.js30 [Object.prototype.toLocaleString,
31 Object.prototype.valueOf,
32 Object.prototype.hasOwnProperty,
33 Object.prototype.isPrototypeOf,
34 Object.prototype.propertyIsEnumerable,
35 Array.prototype.concat,
36 Array.prototype.join,
37 Array.prototype.pop,
38 Array.prototype.push,
39 Array.prototype
[all...]
H A Dgetter-in-value-prototype.js33 String.prototype.__defineGetter__('x', function() { return this; });
H A Dlength.js32 assertEquals(0, Array.prototype.length, "Array.prototype.length");
34 assertEquals(1, Array.prototype.concat.length, "Array.prototype.concat.length");
35 assertEquals(1, Array.prototype.join.length, "Array.prototype.join.length");
36 assertEquals(1, Array.prototype.push.length, "Array.prototype.push.length");
37 assertEquals(1, Array.prototype.unshift.length, "Array.prototype
[all...]
H A Dvalue-wrapper.js103 // Test with normal setup of prototype.
104 String.prototype.TypeOfThis = TypeOfThis;
105 Boolean.prototype.TypeOfThis = TypeOfThis;
106 Number.prototype.TypeOfThis = TypeOfThis;
107 Boolean.prototype[7] = TypeOfThis;
108 Number.prototype[7] = TypeOfThis;
110 String.prototype.ObjectValueOf = Object.prototype.valueOf;
111 Boolean.prototype.ObjectValueOf = Object.prototype
[all...]
H A Dindexed-value-properties.js44 Number.prototype[0] = 0;
45 Number.prototype[1] = return_one;
49 String.prototype[0] = 0;
50 String.prototype[1] = return_one;
53 Boolean.prototype[0] = 0;
54 Boolean.prototype[1] = return_one;
H A Derror-constructors.js30 Error.prototype.toString = Object.prototype.toString;
31 assertEquals("[object Error]", Error.prototype.toString());
32 assertEquals(Object.prototype, Error.prototype.__proto__);
37 ReferenceError.prototype.__defineSetter__('stack', fail);
38 ReferenceError.prototype.__defineSetter__('message', fail);
39 ReferenceError.prototype.__defineSetter__('type', fail);
40 ReferenceError.prototype.__defineSetter__('arguments', fail);
56 assertEquals("ReferenceError", ReferenceError.prototype
[all...]
H A Dfun-as-prototype.js30 Number.prototype.__proto__ = Funky;
33 assertEquals(Funky.prototype, x.prototype);
35 Number.prototype.__proto__ = [1, 2, 3];
H A Dfunction-prototype.js29 // prototype used for instances in that case should be the initial
30 // object prototype. ECMA-262 13.2.2.
33 F.prototype = value;
35 assertEquals(value, F.prototype);
36 assertEquals(Object.prototype, f.__proto__);
47 assertEquals(f.__proto__, F.prototype);
48 F.prototype = 42;
50 assertEquals(Object.prototype, f.__proto__);
51 assertEquals(42, F.prototype);
52 F.prototype
[all...]
/external/chromium/chrome/browser/resources/ntp4/tools/
H A Dexterns.js9 Element.prototype.classList = {};
11 Element.prototype.classList.remove = function(c) {};
13 Element.prototype.classList.add = function(c) {};
15 Element.prototype.classList.contains = function(c) {};
22 CustomEvent.prototype.initCustomEvent =
25 CustomEvent.prototype.detail;
40 Window.prototype.addEventListener = function(type, listener, opt_useCapture) {};
/external/chromium/chrome/browser/resources/touch_ntp/tools/
H A Dexterns.js9 Element.prototype.classList = {};
11 Element.prototype.classList.remove = function(c) {};
13 Element.prototype.classList.add = function(c) {};
15 Element.prototype.classList.contains = function(c) {};
22 CustomEvent.prototype.initCustomEvent =
25 CustomEvent.prototype.detail;
40 Window.prototype.addEventListener = function(type, listener, opt_useCapture) {};

Completed in 173 milliseconds

1234567891011>>