/external/v8/test/mjsunit/regress/ |
H A D | regress-1062422.js | 29 Number.prototype.__proto__ = String.prototype;
|
H A D | regress-1107.js | 31 Object.prototype.__defineGetter__(0, function(){});
|
H A D | regress-842.js | 28 // 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 D | regress-1121.js | 30 // Test that changing Array.prototype.__proto__ keeps Array functions working. 32 Array.prototype.__proto__ = null;
|
H A D | regress-1151.js | 32 __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 D | regress-1447.js | 28 [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 D | regress-341.js | 33 F.prototype = 1;
|
H A D | regress-877615.js | 28 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 D | regress-1218.js | 28 // Builtin functions should not have prototype objects. 29 assertFalse(Error.prototype.toString.hasOwnProperty("prototype"));
|
H A D | regress-1365.js | 36 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 D | regress-900966.js | 29 String.prototype[10] = 'x'; 44 Number.prototype[11] = 'y'; 48 Boolean.prototype[12] = 'z';
|
H A D | regress-1172.js | 29 // 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 D | regress-1403.js | 31 Object.prototype.__proto__ = { __proto__: null }; 35 Array.prototype.__proto__ = { __proto__: null };
|
H A D | regress-192.js | 37 Object.prototype.__defineGetter__("x", function() {}); 38 Object.prototype.__defineSetter__("y",
|
/external/v8/test/message/ |
H A D | overwritten-builtins.js | 28 String.prototype.split = function() { return "SPLIT ERROR"; }; 29 Array.prototype.join = function() { return []; };
|
/external/v8/test/mjsunit/ |
H A D | function-call.js | 30 [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 D | getter-in-value-prototype.js | 33 String.prototype.__defineGetter__('x', function() { return this; });
|
H A D | length.js | 32 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 D | value-wrapper.js | 103 // 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 D | indexed-value-properties.js | 44 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 D | error-constructors.js | 30 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 D | fun-as-prototype.js | 30 Number.prototype.__proto__ = Funky; 33 assertEquals(Funky.prototype, x.prototype); 35 Number.prototype.__proto__ = [1, 2, 3];
|
H A D | function-prototype.js | 29 // 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 D | externs.js | 9 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 D | externs.js | 9 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) {};
|