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

1234567891011>>

/external/chromium_org/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"));
/external/chromium_org/v8/test/message/
H A Doverwritten-builtins.js28 String.prototype.split = function() { return "SPLIT ERROR"; };
29 Array.prototype.join = function() { return []; };
/external/chromium_org/v8/test/webkit/
H A Denter-dictionary-indexing-mode-with-blank-indexing-type.js28 // Freezing the Array prototype causes us to create ArrayStorage on the prototype, which has a blank indexing type.
29 Object.freeze(Array.prototype);
31 shouldBe("Object.isFrozen(Array.prototype)", "true");
H A Dprimitive-method-this.js31 String.prototype.thisType = function() { return typeof this; };
32 Number.prototype.thisType = function() { return typeof this; };
33 Boolean.prototype.thisType = function() { return typeof this; };
H A Dconcat-while-having-a-bad-time.js25 "Tests the behavior of Array.prototype.concat while the array is having a bad time due to one of the elements we are concatenating."
28 Object.defineProperty(Array.prototype, 0, { writable: false });
/external/chromium_org/v8/test/webkit/fast/js/
H A DtoString-overrides.js32 var backupNumberToString = Number.prototype.toString;
33 var backupNumberToLocaleString = Number.prototype.toLocaleString;
34 var backupRegExpToString = RegExp.prototype.toString;
35 var backupRegExpToLocaleString = RegExp.prototype.toLocaleString;
38 Number.prototype.toString = function() { return "toString"; }
39 Number.prototype.toLocaleString = function() { return "toLocaleString"; }
40 RegExp.prototype.toString = function() { return "toString2"; }
41 RegExp.prototype.toLocaleString = function() { return "toLocaleString2"; }
46 Number.prototype.toLocaleString = "invalid";
50 RegExp.prototype
[all...]
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/
H A Dproto.js18 DerivedBadProto.prototype = {
27 InterfaceWithProto.prototype = {
28 __proto__: Base.prototype
36 ProtoNoExtends.prototype = {
37 __proto__: Base.prototype
46 ProtoNotSameAsExtends.prototype = {
47 __proto__: Object.prototype
56 ProtoNotObjectLiteral.prototype = Object;
65 DerivedNoSuperCall.prototype = {
66 __proto__: Base.prototype
[all...]
/external/chromium_org/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; });
/external/chromium_org/remoting/webapp/
H A Dplugin_settings.js23 remoting.Settings.prototype.OAUTH2_CLIENT_ID = 'API_CLIENT_ID';
25 remoting.Settings.prototype.OAUTH2_CLIENT_SECRET = 'API_CLIENT_SECRET';
28 remoting.Settings.prototype.OAUTH2_BASE_URL = 'OAUTH2_BASE_URL';
30 remoting.Settings.prototype.OAUTH2_API_BASE_URL = 'OAUTH2_API_BASE_URL';
32 remoting.Settings.prototype.DIRECTORY_API_BASE_URL = 'DIRECTORY_API_BASE_URL';
34 remoting.Settings.prototype.TALK_GADGET_URL = 'TALK_GADGET_URL';
36 remoting.Settings.prototype.OAUTH2_REDIRECT_URL = 'OAUTH2_REDIRECT_URL';
39 remoting.Settings.prototype.DIRECTORY_BOT_JID = 'DIRECTORY_BOT_JID';
43 remoting.Settings.prototype.XMPP_SERVER_ADDRESS = 'XMPP_SERVER_ADDRESS';
45 remoting.Settings.prototype
[all...]
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/liblouis_nacl/
H A Dexterns.js22 NaClEmbedElement.prototype.postMessage = function(message) {};
/external/chromium_org/chrome/browser/resources/cryptotoken/
H A Dcloseable.js17 Closeable.prototype.close = function() {};
H A Dindividualattest.js23 IndividualAttestation.prototype.requestIndividualAttestation =
H A Dinherits.js17 tempCtor.prototype = parentCtor.prototype;
18 childCtor.prototype = new tempCtor;
19 childCtor.prototype.constructor = childCtor;
H A Dcountdown.js22 Countdown.prototype.setTimeout = function(timeoutMillis, cb) {};
25 Countdown.prototype.clearTimeout = function() {};
30 Countdown.prototype.millisecondsUntilExpired = function() {};
33 Countdown.prototype.expired = function() {};
40 Countdown.prototype.clone = function(cb) {};
54 CountdownFactory.prototype.createTimer = function(timeoutMillis, opt_cb) {};
/external/chromium_org/third_party/closure_compiler/externs/
H A Dpending_compiler_externs.js15 DOMImplementation.prototype.createHTMLDocument = function(opt_title) {};
/external/chromium_org/v8/test/intl/overrides/
H A Dwebkit-tests.js30 // Handles fast/js/string-prototype-properties.html
31 assertThrows('String.prototype.localeCompare.call(undefined, \'1224\')');
32 assertEquals(0, String.prototype.localeCompare.call(1224, '1224'));

Completed in 315 milliseconds

1234567891011>>