Home
last modified time | relevance | path

Searched refs:prototype (Results 1 – 25 of 1132) sorted by relevance

12345678910>>...46

/external/v8/test/webkit/fast/js/kde/
Dinbuilt_function_proto-expected.txt29 PASS Object.prototype.toString.__proto__ is Function.prototype
30 PASS Object.prototype.valueOf.__proto__ is Function.prototype
31 PASS Array.prototype.toString.__proto__ is Function.prototype
32 PASS Array.prototype.toLocaleString.__proto__ is Function.prototype
33 PASS Array.prototype.concat.__proto__ is Function.prototype
34 PASS Array.prototype.join.__proto__ is Function.prototype
35 PASS Array.prototype.pop.__proto__ is Function.prototype
36 PASS Array.prototype.push.__proto__ is Function.prototype
37 PASS Array.prototype.reverse.__proto__ is Function.prototype
38 PASS Array.prototype.shift.__proto__ is Function.prototype
[all …]
/external/v8/test/mjsunit/
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.reverse,
[all …]
Dvalue-wrapper.js105 String.prototype.TypeOfThis = TypeOfThis;
106 Boolean.prototype.TypeOfThis = TypeOfThis;
107 Number.prototype.TypeOfThis = TypeOfThis;
108 Boolean.prototype[7] = TypeOfThis;
109 Number.prototype[7] = TypeOfThis;
111 String.prototype.ObjectValueOf = Object.prototype.valueOf;
112 Boolean.prototype.ObjectValueOf = Object.prototype.valueOf;
113 Number.prototype.ObjectValueOf = Object.prototype.valueOf;
115 String.prototype.ObjectToString = Object.prototype.toString;
116 Boolean.prototype.ObjectToString = Object.prototype.toString;
[all …]
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.unshift.length");
42 assertEquals(1, Function.prototype.call.length, "Function.prototype.call.length");
44 assertEquals(1, Number.prototype.toExponential.length, "Number.prototype.toExponential.length");
45 assertEquals(1, Number.prototype.toFixed.length, "Number.prototype.toFixed.length");
46 assertEquals(1, Number.prototype.toPrecision.length, "Number.prototype.toPrecision.length");
52 assertEquals(1, String.prototype.concat.length, "String.prototype.concat.length");
[all …]
/external/v8/test/mjsunit/es6/
Dstring-html.js12 assertEquals(String.prototype.anchor.call(0x2A, 0x2A), '<a name="42">42</a>');
14 String.prototype.anchor.call(undefined);
17 String.prototype.anchor.call(null);
19 assertEquals(String.prototype.anchor.length, 1);
23 assertEquals(String.prototype.big.call(0x2A), '<big>42</big>');
25 String.prototype.big.call(undefined);
28 String.prototype.big.call(null);
30 assertEquals(String.prototype.big.length, 0);
34 assertEquals(String.prototype.blink.call(0x2A), '<blink>42</blink>');
36 String.prototype.blink.call(undefined);
[all …]
Darray-length.js13 var result = Array.prototype.toString.call(o);
19 var result = Array.prototype.toLocaleString.call(o);
25 var result = Array.prototype.join.call(o);
31 Array.prototype.push.call(o, 1);
36 assertThrows(() => Array.prototype.push.call(o, 1), TypeError);
41 Array.prototype.pop.call(o);
45 Array.prototype.pop.call(o);
49 Array.prototype.pop.call(o);
55 var result = Array.prototype.reverse.call(o);
63 var result = Array.prototype.shift.call(o);
[all …]
Dstring-repeat.js28 assertEquals("000", String.prototype.repeat.call(0, 3));
29 assertEquals("-1-1-1", String.prototype.repeat.call(-1, 3));
30 assertEquals("2.12.12.1", String.prototype.repeat.call(2.1, 3));
31 assertEquals("", String.prototype.repeat.call([], 3));
32 assertEquals("1,2,3", String.prototype.repeat.call([1, 2, 3], 1));
33 assertEquals("true", String.prototype.repeat.call(true, 1));
34 assertEquals("false", String.prototype.repeat.call(false, 1));
35 assertEquals("[object Object]", String.prototype.repeat.call({}, 1));
37 assertEquals("000", String.prototype.repeat.apply(0, [3]));
38 assertEquals("-1-1-1", String.prototype.repeat.apply(-1, [3]));
[all …]
Dsuper.js11 Base.prototype = {
24 Derived.prototype = {
25 __proto__: Base.prototype,
59 Base.prototype[x] = 15;
64 Derived.prototype = {
65 __proto__: Base.prototype,
101 Base.prototype = {
112 Derived.prototype = {
113 __proto__: Base.prototype,
136 Base.prototype = {
[all …]
/external/v8/test/mjsunit/es7/
Darray-includes.js23 assertTrue(Array.prototype.includes.call(arrayLike, "c"));
35 assertTrue(Array.prototype.includes.call(arrayLike1, "a"));
36 assertFalse(Array.prototype.includes.call(arrayLike1, "c"));
45 assertTrue(Array.prototype.includes.call(arrayLike2, "b"));
46 assertFalse(Array.prototype.includes.call(arrayLike2, "c"));
53 Array.prototype.includes.call(null, "a");
57 Array.prototype.includes.call(undefined, "a");
80 Array.prototype.includes.call(trappedZero, "a");
97 Array.prototype.includes.call(trappedZero, "a", Symbol());
122 Array.prototype.includes.call(trappedZero, "a", fromIndex);
[all …]
/external/v8/test/webkit/fast/js/
DtoString-number-expected.txt24 Test the conversion performed by the function Number.prototype.toString.
30 PASS Number.prototype.toString.call(0) is "0"
31 PASS Number.prototype.toString.call(new Number(0)) is "0"
35 PASS Number.prototype.toString.call(0, 2) is "0"
36 PASS Number.prototype.toString.call(new Number(0), 2) is "0"
38 PASS Number.prototype.toString.call(0, 36) is "0"
39 PASS Number.prototype.toString.call(new Number(0), 36) is "0"
41 PASS Number.prototype.toString.call(-1) is "-1"
42 PASS Number.prototype.toString.call(new Number(-1)) is "-1"
46 PASS Number.prototype.toString.call(-1, 2) is "-1"
[all …]
Darray-functions-non-arrays-expected.txt33 PASS Array.prototype.toString.call({}) is "[object Object]"
34 PASS Array.prototype.toString.call(new Date) is "[object Date]"
35 PASS Array.prototype.toString.call({sort: function() { return 'sort' }}) is "[object Object]"
36 PASS Array.prototype.toString.call({join: function() { return 'join' }}) is "join"
37 PASS Array.prototype.toString.call({__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', length: 3})…
38 PASS ({__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', length: 3}).toString() is "a,b,c"
39 PASS Array.prototype.toString.call({__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', length: 3, …
40 PASS ({__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', length: 3, join: function() { return 'jo…
41 PASS Array.prototype.toString.call(42) is "Number.prototype.join:42"
43 FAIL Array.prototype.toLocaleString.call({}) should throw an exception. Was .
[all …]
Dprimitive-property-access-edge-cases.js31 delete String.prototype.constructor;
37 String.prototype.__proto__ = { x: 1, y: 1 };
38 delete String.prototype.__proto__.x;
48 String.prototype.x = 1;
49 String.prototype.y = 1;
50 delete String.prototype.x;
52 Number.prototype.x = 1;
53 Number.prototype.y = 1;
54 delete Number.prototype.x;
69 …Object.defineProperty(constructor.prototype, "foo", { get: function() { checkOkay = typeof this ==…
[all …]
Darray-prototype-properties-expected.txt29 PASS Array.prototype.toString.call(undefined) threw exception TypeError: Cannot convert undefined o…
30 PASS Array.prototype.toLocaleString.call(undefined) threw exception TypeError: Cannot convert undef…
31 PASS Array.prototype.concat.call(undefined, []) threw exception TypeError: Array.prototype.concat c…
32 PASS Array.prototype.join.call(undefined, []) threw exception TypeError: Array.prototype.join calle…
33 PASS Array.prototype.pop.call(undefined) threw exception TypeError: Array.prototype.pop called on n…
34 PASS Array.prototype.push.call(undefined, {}) threw exception TypeError: Array.prototype.push calle…
35 PASS Array.prototype.reverse.call(undefined) threw exception TypeError: Array.prototype.reverse cal…
36 PASS Array.prototype.shift.call(undefined) threw exception TypeError: Array.prototype.shift called …
37 PASS Array.prototype.slice.call(undefined, 0, 1) threw exception TypeError: Array.prototype.slice c…
38 PASS Array.prototype.sort.call(undefined) threw exception TypeError: Array.prototype.sort called on…
[all …]
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.toLocaleString = "invalid";
[all …]
/external/v8/src/debug/
Dmirrors.js231 tempCtor.prototype = superCtor.prototype;
232 ctor.super_ = superCtor.prototype;
233 ctor.prototype = new tempCtor();
234 ctor.prototype.constructor = ctor;
277 Mirror.prototype.type = function() {
286 Mirror.prototype.isValue = function() {
295 Mirror.prototype.isUndefined = function() {
304 Mirror.prototype.isNull = function() {
313 Mirror.prototype.isBoolean = function() {
322 Mirror.prototype.isNumber = function() {
[all …]
/external/chromium-trace/catapult/third_party/polymer/components/core-focusable/
Dpolymer-mixin.js1 Polymer.mixin2 = function(prototype, mixin) { argument
6 prototype.publish = prototype.publish || {};
7 Polymer.mixin(prototype.publish, mixin.mixinPublish);
11 prototype.eventDelegates = prototype.eventDelegates || {};
13 if (!prototype.eventDelegates[e]) {
14 prototype.eventDelegates[e] = mixin.mixinDelegates[e];
20 prototype.observe = prototype.observe || {};
22 if (!prototype.observe[o] && !prototype[o + 'Changed']) {
23 prototype.observe[o] = mixin.mixinObserve[o];
28 Polymer.mixin(prototype, mixin);
[all …]
/external/v8/test/webkit/
Dprototypes-expected.txt29 PASS ('').__proto__ is String.prototype
30 PASS (0).__proto__ is Number.prototype
31 PASS ([]).__proto__ is Array.prototype
32 PASS ({}).__proto__ is Object.prototype
33 PASS (new Date).__proto__ is Date.prototype
34 PASS (new Number).__proto__ is Number.prototype
35 PASS (new Object).__proto__ is Object.prototype
36 PASS (new String).__proto__ is String.prototype
37 PASS Array.prototype.__proto__ is Object.prototype
38 PASS Date.prototype.__proto__ is Object.prototype
[all …]
Darray-enumerators-functions-expected.txt29 …ray).every(forwarders[f], returnFalse, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj…
30 …ray).every(forwarders[f], returnFalse, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj…
31 …ray).every(forwarders[f], returnFalse, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj…
32 …ray).every(forwarders[f], returnFalse, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj…
33 …rray).every(forwarders[f], returnTrue, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj…
34 …rray).every(forwarders[f], returnTrue, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj…
35 …rray).every(forwarders[f], returnTrue, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj…
36 …rray).every(forwarders[f], returnTrue, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj…
37 …rray).every(forwarders[f], returnElem, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj…
38 …rray).every(forwarders[f], returnElem, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObj…
[all …]
Dclass-syntax-prototype-expected.txt6 PASS class A {}; descriptor(A, "prototype").writable is false
7 PASS class A {}; var x = A.prototype; A.prototype = 3; A.prototype is x
8 PASS class A {}; descriptor(A, "prototype").enumerable is false
10 PASS class A {}; enumeratedProperties(A).includes("prototype") is false
11 PASS class A {}; descriptor(A, "prototype").configurable is false
12 … {}; Object.defineProperty(A, "prototype", {value: "foo"}) threw exception TypeError: Cannot redef…
26 PASS class A { foo() {} }; descriptor(A.prototype, "foo").writable is true
27 PASS class A { foo() {} }; A.prototype.foo = 3; A.prototype.foo is 3
28 PASS class A { foo() {} }; descriptor(A.prototype, "foo").enumerable is false
29 PASS class A { foo() {} }; enumeratedProperties(A.prototype).includes("foo") is false
[all …]
/external/v8/test/mjsunit/regress/
Dregress-2443.js30 assertThrows(function() { Number.prototype.toExponential.call({}) },
33 assertThrows(function() { Number.prototype.toPrecision.call({}) },
36 assertThrows(function() { Number.prototype.toFixed.call({}) },
39 assertThrows(function() { Number.prototype.toString.call({}) },
42 assertThrows(function() { Number.prototype.toLocaleString.call({}) },
45 assertThrows(function() { Number.prototype.ValueOf.call({}) },
55 Number.prototype.toExponential.call(x_obj, 2));
58 Number.prototype.toPrecision.call(x_obj, 2));
61 Number.prototype.toFixed.call(x_obj, 2));
65 Number.prototype.toExponential.call(1, 2));
[all …]
/external/v8/test/mjsunit/harmony/
Dproxies-get-prototype-of.js50 assertTrue(Object.prototype.isPrototypeOf.call(proto, object));
52 handler.getPrototypeOf = function () { return Object.prototype };
54 assertTrue(Object.prototype.isPrototypeOf.call(proto, object));
55 assertTrue(Object.prototype.isPrototypeOf(object));
56 assertFalse(Object.prototype.isPrototypeOf.call(Array.prototype, object));
57 assertFalse(Array.prototype.isPrototypeOf(object));
60 assertTrue(Object.prototype.isPrototypeOf.call(proto, object));
62 assertTrue(Object.prototype.isPrototypeOf.call(object, object));
67 assertTrue(Object.prototype.isPrototypeOf.call(proto, object));
68 assertThrows(()=> Object.prototype.isPrototypeOf(object));
[all …]
Dproxies-set-prototype-of.js18 var prototype = [1]; variable
19 assertSame(proxy, Object.setPrototypeOf(proxy, prototype));
20 assertSame(prototype, Object.getPrototypeOf(proxy));
21 assertSame(prototype, Object.getPrototypeOf(target));
24 assertSame(pair.proxy, Object.setPrototypeOf(pair.proxy, prototype));
25 assertSame(prototype, Object.getPrototypeOf(pair.proxy));
67 var prototype = [2,3];
68 assertSame(proxy2, Object.setPrototypeOf(proxy2, prototype));
69 assertSame(prototype, Object.getPrototypeOf(proxy2));
70 assertSame(prototype, Object.getPrototypeOf(target));
[all …]
/external/v8/tools/
Dprofile.js49 Profile.prototype.skipThisFunction = function(name) {
91 Profile.prototype.handleUnknownCode = function(
103 Profile.prototype.addLibrary = function(
119 Profile.prototype.addStaticCode = function(
136 Profile.prototype.addCode = function(
154 Profile.prototype.addFuncCode = function(
186 Profile.prototype.moveCode = function(from, to) {
200 Profile.prototype.deleteCode = function(start) {
215 Profile.prototype.moveFunc = function(from, to) {
227 Profile.prototype.findEntry = function(addr) {
[all …]
/external/v8/benchmarks/
Ddeltablue.js49 Object.prototype.inheritsFrom = function (shuper) {
51 Inheriter.prototype = shuper.prototype;
52 this.prototype = new Inheriter();
60 OrderedCollection.prototype.add = function (elm) {
64 OrderedCollection.prototype.at = function (index) {
68 OrderedCollection.prototype.size = function () {
72 OrderedCollection.prototype.removeFirst = function () {
76 OrderedCollection.prototype.remove = function (elm) {
122 Strength.prototype.nextWeaker = function () {
160 Constraint.prototype.addConstraint = function () {
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/
Dmessages.js164 ProtoRpc.Enum.prototype.getValueFromNumber = function(number) {
208 ProtoRpc.EnumValue.prototype.toString = function() {
216 ProtoRpc.EnumValue.prototype.valueOf = function() {
278 ProtoRpc.MessageDefinition_.prototype.createProxy = function(instance) {
281 var proto = proxy.prototype;
298 ProtoRpc.MessageDefinition_.prototype.getFieldByNumber = function(number) {
352 ProtoRpc.Message_.prototype.getFieldByNumber_ = function(number) {
356 ProtoRpc.Message_.prototype.checkInitialized = function() {
385 ProtoRpc.Message_.prototype.getName = function() {
396 ProtoRpc.Message_.prototype.getValue = function(number, opt_idx) {
[all …]

12345678910>>...46