Home
last modified time | relevance | path

Searched refs:defineProperty (Results 1 – 25 of 158) sorted by relevance

1234567

/external/v8/test/webkit/
Darray-defineOwnProperty-expected.txt29 PASS Object.defineProperty([], 'x', { get:function(){return true;} }).x is true
30 PASS Object.defineProperty([], 'length', { value: 1 }).length is 1
31 PASS var a = Object.defineProperty([], 'length', { writable: false }); a[1] = 1; a.length is 0
32 PASS var a = Object.defineProperty([], 'length', { writable: false }); a.length = 1; a.length is 0
33 PASS var a = Object.defineProperty([], 'length', {}); a.length = 1; a.length is 1
34 PASS Object.defineProperty([], 'length', { get:function(){return true;} }) threw exception TypeErro…
35 PASS Object.defineProperty([], 'length', { enumerable: true }) threw exception TypeError: Cannot re…
36 PASS Object.defineProperty([], 'length', { configurable: true }) threw exception TypeError: Cannot …
37 PASS Object.defineProperty(Object.defineProperty([], 'length', { writable: false }), 'length', { wr…
38 PASS var a = Object.defineProperty([], '0', { value: 42 }); a[0] is 42
[all …]
Darray-proto-func-property-getter-except.js36 Object.defineProperty(testObj, 0, propertyGetter);
37 Object.defineProperty(testObj, 1, propertyGetter);
38 Object.defineProperty(testObj, 2, propertyGetter);
Darray-defineOwnProperty.js76 Object.defineProperty(Array.prototype, "0", { set: function () { throw false; } });
77 Object.defineProperty(Array.prototype, "1", { set: function () { throw false; } });
79 Object.defineProperty(arrObj, "0", { set: function (x) { this.set = x === 42; } });
/external/v8/test/webkit/fast/js/
DObject-defineProperty-expected.txt24 Test to ensure correct behaviour of Object.defineProperty
29 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1}), 'f…
30 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {}), 'foo')) i…
31 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {get:undefined…
32 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, writ…
33 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, writ…
34 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, enum…
35 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, enum…
36 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, conf…
37 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, conf…
[all …]
DObject-defineProperty.js62 …return Object.defineProperty(o, prop, {value:1, configurable:false, writable: writable, enumerable…
183 Object.defineProperty(Object.prototype, 0, {get:function(){ return false; }, configurable:true})
188 Object.defineProperty(Object.prototype, 'readOnly', {value:true, configurable:true, writable:false})
213 Object.defineProperty(anObj, 'slot1', {value: 'foo', enumerable: true});
214 Object.defineProperty(anObj, 'slot2', {value: 'bar', writable: true});
215 Object.defineProperty(anObj, 'slot3', {value: 'baz', enumerable: false});
216 Object.defineProperty(anObj, 'slot4', {value: 'goo', configurable: false});
226 …Object.defineProperty(Object.getPrototypeOf(anObj), 'slot5', {get: function() { return this._Slot5…
231 Object.defineProperty(anObj, 'slot5', { value: 456 });
Dprimitive-property-access-edge-cases.js69 …Object.defineProperty(constructor.prototype, "foo", { get: function() { checkOkay = typeof this ==…
78 …Object.defineProperty(constructor.prototype, "foo", { set: function() { checkOkay = typeof this ==…
87 …Object.defineProperty(constructor.prototype, "foo", { get: function() { "use strict"; checkOkay = …
96 …Object.defineProperty(constructor.prototype, "foo", { set: function() { "use strict"; checkOkay = …
155 …Object.defineProperty(constructor.prototype, 42, { get: function() { checkOkay = typeof this === '…
164 …Object.defineProperty(constructor.prototype, 42, { set: function() { checkOkay = typeof this === '…
173 …Object.defineProperty(constructor.prototype, 42, { get: function() { "use strict"; checkOkay = typ…
182 …Object.defineProperty(constructor.prototype, 42, { set: function() { "use strict"; checkOkay = typ…
/external/v8/test/mjsunit/
Dobject-define-property.js35 Object.defineProperty(null, null, null);
45 Object.defineProperty(undefined, undefined, undefined);
55 Object.defineProperty(0, "foo", undefined);
116 Object.defineProperty(obj1, "foo", undefined);
124 Object.defineProperty(obj1, "foo", emptyDesc);
147 Object.defineProperty(obj1, "foo", accessorConfigurable);
155 Object.defineProperty(obj1, "bar", accessorConfigurable);
170 Object.defineProperty(obj1, "bar", accessorNoConfigurable);
188 Object.defineProperty(obj1, "bar", accessorConfigurable);
196 Object.defineProperty(obj1, "bar", dataConfigurable);
[all …]
Dobject-freeze.js102 Object.defineProperty(obj2, 'x', { get: get, set: set, configurable: true });
167 Object.defineProperty(obj3, 'x', {configurable: false, writable: false});
168 Object.defineProperty(obj3, 'y', {configurable: false, writable: false});
177 Object.defineProperty(obj4, 'x', {configurable: false, writable: true});
178 Object.defineProperty(obj4, 'y', {configurable: false, writable: false});
186 Object.defineProperty(obj5, 'x', {configurable: true, writable: false});
187 Object.defineProperty(obj5, 'y', {configurable: false, writable: false});
198 Object.defineProperty(obj, 'y', {enumerable: false});
247 Object.defineProperty(obj, 'accessor', {
285 Object.defineProperty(obj, 'accessor', {
[all …]
Darray-push-unshift-read-only-length.js9 Object.defineProperty(a, "length", { writable : false});
47 Object.defineProperty(b.__proto__, "0", {
50 Object.defineProperty(b, "length", { writable : false });
86 Object.defineProperty(b.__proto__, "4", {
89 Object.defineProperty(b, "length", { writable : false });
/external/v8/test/webkit/fast/regex/
DlastIndex-expected.txt34 PASS Object.defineProperty(/x/, {get:function(){}}) threw exception TypeError: Property description…
35 PASS Object.defineProperty(/x/, 'lastIndex', {enumerable:true}); true threw exception TypeError: Ca…
36 PASS Object.defineProperty(/x/, 'lastIndex', {enumerable:false}); true is true
37 PASS Object.defineProperty(/x/, 'lastIndex', {configurable:true}); true threw exception TypeError: …
38 PASS Object.defineProperty(/x/, 'lastIndex', {configurable:false}); true is true
39 PASS var re = Object.defineProperty(/x/, 'lastIndex', {writable:true}); re.lastIndex = 42; re.lastI…
40 PASS var re = Object.defineProperty(/x/, 'lastIndex', {writable:false}); re.lastIndex = 42; re.last…
41 PASS var re = Object.defineProperty(/x/, 'lastIndex', {value:42}); re.lastIndex is 42
42 PASS Object.defineProperty(Object.defineProperty(/x/, 'lastIndex', {writable:false}), 'lastIndex', …
43 PASS Object.defineProperty(Object.defineProperty(/x/, 'lastIndex', {writable:false}), 'lastIndex', …
[all …]
/external/v8/test/mjsunit/bugs/
Dbug-2615.js43 Object.defineProperty(a, "1", {writable:false, configurable:false, value: 100});
52 Object.defineProperty(a, "1", {get:g});
62 Object.defineProperty(a, "1", {set:s});
71 Object.defineProperty(a, "1", {configurable:false, value:10});
78 Object.defineProperty(a, "3", {configurable:false, writable:false, value:3});
86 Object.defineProperty(a, "5", {configurable:false, value:5});
93 Object.defineProperty(a, "1", {configurable:false, writable:true, value:2});
106 Object.defineProperty(a, "2", {configurable:false, value:3});
113 Object.defineProperty(a, "4", {writable:true, configurable:false, value:5});
122 Object.defineProperty(a, "4", {value:5, writable:false});
/external/v8/test/mjsunit/regress/
Dregress-crbug-137689.js37 Object.defineProperty(o, "foo", { get: getter, configurable: true });
38 Object.defineProperty(o2, "foo", { get: getter, configurable: true });
41 Object.defineProperty(o, "bar", { get: getter2 });
42 Object.defineProperty(o2, "bar", { get: getter2 });
45 Object.defineProperty(o, "foo", { set: setter, configurable: true });
46 Object.defineProperty(o2, "foo", { set: setter, configurable: true });
Dregress-crbug-125148.js38 Object.defineProperty(A, "foo", { value: function() { assertUnreachable(); }});
41 Object.defineProperty(B, "foo", { value: function() { return 111; }});
55 Object.defineProperty(A, "baz", { get: function() { assertUnreachable(); }});
58 Object.defineProperty(B, "baz", { get: function() { return 111; }});
72 Object.defineProperty(A, "huh", { set: function(x) { assertUnreachable(); }});
76 Object.defineProperty(B, "huh", { set: function(x) { setterValue = x; }});
Dregress-builtinbust-6.js23 Object.defineProperty(Number.prototype, "length", { get:length, set:length });
24 Object.defineProperty(Number.prototype, "0", { get:element, set:element });
25 Object.defineProperty(Number.prototype, "1", { get:element, set:element });
26 Object.defineProperty(Number.prototype, "2", { get:element, set:element });
Dregress-128146.js29 Object.defineProperty({},"foo",{set:function(){},configurable:false});
30 Object.defineProperty({},"foo",{get:function(){},configurable:false});
33 Object.defineProperty({},"foo",{});
Dregress-687.js33 Object.defineProperty(obj, "value",
46 set value(v) { Object.defineProperty(this, "value", {value: v}); }
57 Object.defineProperty(obj1, 'p', {get: undefined, set: undefined});
68 Object.defineProperty(obj2, 'p', {get: undefined})
Dregress-2606.js37 Object.defineProperty(Object.prototype, "__proto__", { get:replaced_get });
45 Object.defineProperty(Object.prototype, "__proto__", { set:replaced_set });
52 Object.defineProperty(Object.prototype, "__proto__", { configurable:false });
Dregress-crbug-168545.js29 Object.defineProperty(o, "length", { get: function() { throw "bail"; }});
33 Object.defineProperty(a, "0", { get: function() { throw "bail"; }});
Dregress-356589.js31 Object.defineProperty(arr.__proto__, '0', { get: function(){} });
32 Object.defineProperty(arr, '2', {get: function(){} });
Dregress-712.js34 Object.defineProperty(obj, "x", { get: function() { return "42"; },
37 Object.defineProperty(obj, 'x', {});
/external/v8/test/mjsunit/compiler/
Dinline-accessors.js103 obj = Object.defineProperty(new ConstrG1(), "getterProperty", { get: getter1 });
119 obj = Object.defineProperty(new ConstrG2(), "getterProperty", { get: getter2 });
134 obj = Object.defineProperty(new ConstrG3(), "getterProperty", { get: getter3 });
150 obj = Object.defineProperty(new ConstrG4(), "getterProperty", { get: getter4 });
167 obj = Object.defineProperty(new ConstrG5(), "getterProperty", { get: getter5 });
184 obj = Object.defineProperty(new ConstrG6(), "getterProperty", { get: getter6 });
264 obj = Object.defineProperty(new ConstrS1(), "setterProperty", { set: setter1 });
281 obj = Object.defineProperty(new ConstrS2(), "setterProperty", { set: setter2 });
297 obj = Object.defineProperty(new ConstrS3(), "setterProperty", { set: setter3 });
314 obj = Object.defineProperty(new ConstrS4(), "setterProperty", { set: setter4 });
[all …]
/external/v8/test/mjsunit/es7/
Dobject-observe.js103 Object.defineProperty(changeRecordWithAccessor, 'name', {
181 Object.defineProperty(Object.prototype, 'protoExpando',
333 Object.defineProperty(obj, 'b', {
338 Object.defineProperty(obj, 'c', {
343 Object.defineProperty(obj, 'd', {
370 Object.defineProperty(obj, 'b', {
375 Object.defineProperty(obj, 'c', {
380 Object.defineProperty(obj, 'd', {
854 Object.defineProperty(obj, "a", {value: 6});
855 Object.defineProperty(obj, "a", {writable: false});
[all …]
/external/v8/test/mjsunit/harmony/
Darray-of.js86 Object.defineProperty(Array.prototype, "0", {set: function(v) {status = "FAIL 1"}});
90 Object.defineProperty(Bag.prototype, "0", {set: function(v) {status = "FAIL 2"}});
122 Object.defineProperty(this, "length", {set: setter});
131 Object.defineProperty(Bevy.prototype, "length", {set: setter});
143 Object.defineProperty(Empty.prototype, "length", {get: function() { return 0; }});
Dproxies.js398 defineProperty: function(k, desc) { key = k; val = desc.value } method
406 defineProperty: function(k, desc) { this.defineProperty2(k, desc) }, method
414 defineProperty: function(k, desc) { key = k; val = desc.value } method
426 defineProperty: function(k, desc) { key = k; val = desc.value } method
434 defineProperty: function(k, desc) { key = k; val = desc.value } method
447 defineProperty: function(k, desc) { key = k, val = desc.value } method
481 defineProperty: function(k, desc) { key = k; val = desc.value } method
486 defineProperty: function(k, desc) { throw "myexn" } method
494 defineProperty: function(k, desc) { this.defineProperty2(k, desc) }, method
503 defineProperty: function(k, desc) { this.defineProperty2(k, desc) }, method
[all …]
/external/v8/test/mjsunit/es6/
Dunscopables.js347 Object.defineProperty(proto, 'x', {
376 Object.defineProperty(object, Symbol.unscopables, {
390 Object.defineProperty(object, Symbol.unscopables, {
404 Object.defineProperty(object, Symbol.unscopables, {
439 Object.defineProperty(proto, 'x', {
448 Object.defineProperty(object, 'x', {
478 Object.defineProperty(proto, 'x', {
488 Object.defineProperty(object, 'x', {
650 Object.defineProperty(object, Symbol.unscopables, {

1234567