Home
last modified time | relevance | path

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

123456789

/external/chromium_org/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/chromium_org/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/chromium_org/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 …]
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 });
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 …]
/external/chromium_org/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/chromium_org/ui/webui/resources/js/cr/ui/table/
Dtable_column.js73 cr.defineProperty(TableColumn, 'id');
79 cr.defineProperty(TableColumn, 'name');
85 cr.defineProperty(TableColumn, 'width');
91 cr.defineProperty(TableColumn, 'endAlign');
97 cr.defineProperty(TableColumn, 'renderFunction');
103 cr.defineProperty(TableColumn, 'headerRenderFunction');
109 cr.defineProperty(TableColumn, 'defaultOrder');
/external/chromium_org/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/chromium_org/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-128146.js29 Object.defineProperty({},"foo",{set:function(){},configurable:false});
30 Object.defineProperty({},"foo",{get:function(){},configurable:false});
33 Object.defineProperty({},"foo",{});
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-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})
/external/chromium_org/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/chromium_org/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/chromium_org/third_party/WebKit/Source/core/testing/
DPrivateScriptTest.js98 Object.defineProperty(PrivateScriptTestPrototype, "readonlyShortAttribute", {
102 Object.defineProperty(PrivateScriptTestPrototype, "shortAttribute", {
107 Object.defineProperty(PrivateScriptTestPrototype, "stringAttribute", {
112 Object.defineProperty(PrivateScriptTestPrototype, "nodeAttribute", {
117 Object.defineProperty(PrivateScriptTestPrototype, "nodeAttributeThrowsIndexSizeError", {
155 Object.defineProperty(PrivateScriptTestPrototype, "stringAttributeForPrivateScriptOnly", {
164 Object.defineProperty(PrivateScriptTestPrototype, "stringAttributeImplementedInCPP", {
/external/chromium_org/extensions/renderer/resources/
Dapp_window_custom_bindings.js25 Object.defineProperty(Bounds.prototype, 'left', {
34 Object.defineProperty(Bounds.prototype, 'top', {
43 Object.defineProperty(Bounds.prototype, 'width', {
52 Object.defineProperty(Bounds.prototype, 'height', {
61 Object.defineProperty(Bounds.prototype, 'minWidth', {
70 Object.defineProperty(Bounds.prototype, 'maxWidth', {
79 Object.defineProperty(Bounds.prototype, 'minHeight', {
88 Object.defineProperty(Bounds.prototype, 'maxHeight', {
261 Object.defineProperty(AppWindow.prototype, 'id', {get: function() {
266 Object.defineProperty(
[all …]
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr/ui/
Dlist_item.js54 cr.defineProperty(ListItem, 'selected', cr.PropertyKind.BOOL_ATTR,
64 cr.defineProperty(ListItem, 'lead', cr.PropertyKind.BOOL_ATTR);
70 cr.defineProperty(ListItem, 'listIndex');
/external/chromium_org/ui/webui/resources/js/cr/ui/
Dlist_item.js52 cr.defineProperty(ListItem, 'selected', cr.PropertyKind.BOOL_ATTR,
61 cr.defineProperty(ListItem, 'lead', cr.PropertyKind.BOOL_ATTR);
67 cr.defineProperty(ListItem, 'listIndex');
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/common/
Dutilities.js442 Object.defineProperty(Array.prototype, "remove",
467 Object.defineProperty(Array.prototype, "keySet",
482 Object.defineProperty(Array.prototype, "pushAll",
495 Object.defineProperty(Array.prototype, "rotate",
512 Object.defineProperty(Array.prototype, "sortNumbers",
533 Object.defineProperty(Uint32Array.prototype, "sort", {
568 Object.defineProperty(Array.prototype, "partition", partition);
569 Object.defineProperty(Uint32Array.prototype, "partition", partition);
601 Object.defineProperty(Array.prototype, "sortRange", sortRange);
602 Object.defineProperty(Uint32Array.prototype, "sortRange", sortRange);
[all …]
/external/chromium_org/chrome/common/extensions/docs/examples/api/fontSettings/js/
Dcr.js186 function defineProperty(obj, name, opt_kind, opt_setHook) { function
270 Object.defineProperty(obj, propertyName, propertyDescriptor);
295 Object.defineProperty(global, 'cr', {
297 Object.defineProperty(global, 'cr', {value: originalCr});
346 defineProperty: defineProperty,

123456789