Lines Matching full:enumerable
27 "JSON.stringify({value: 1, writable: false, enumerable: false, configurable: false})");
29 "JSON.stringify({writable: false, enumerable: false, configurable: false})");
31 "JSON.stringify({enumerable: false, configurable: false})");
33 "JSON.stringify({value: 1, writable: false, enumerable: false, configurable: false})");
35 "JSON.stringify({value: 1, writable: true, enumerable: false, configurable: false})");
36 shouldBe("JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, enumerable: false}), 'foo'))",
37 "JSON.stringify({value: 1, writable: false, enumerable: false, configurable: false})");
38 shouldBe("JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, enumerable: true}), 'foo'))",
39 "JSON.stringify({value: 1, writable: false, enumerable: true, configurable: false})");
41 "JSON.stringify({value: 1, writable: false, enumerable: false, configurable: false})");
43 "JSON.stringify({value: 1, writable: false, enumerable: false, configurable: true})");
45 "JSON.stringify({value: 1, writable: false, enumerable: false, configurable: true})");
59 function createUnconfigurableProperty(o, prop, writable, enumerable) {
61 enumerable = enumerable || false;
62 return Object.defineProperty(o, prop, {value:1, configurable:false, writable: writable, enumerable: enumerable});
66 shouldThrow("Object.defineProperty(createUnconfigurableProperty({}, 'foo'), 'foo', {enumerable: true})");
67 shouldThrow("Object.defineProperty(createUnconfigurableProperty({}, 'foo', false, true), 'foo', {enumerable: false}), 'foo'");
70 "JSON.stringify({value: 1, writable: false, enumerable: false, configurable: false})");
116 shouldBe("Object.defineProperty(Object.defineProperty({}, 'foo', {get: function() { return 1; }, configurable: true, enumerable: true}), 'foo', {get: function() { return 2; }, configurable: true, enumerable: false}).foo", "2");
117 shouldBe("Object.defineProperty(Object.defineProperty({}, 'foo', {get: function() { return 1; }, configurable: true, enumerable: false}), 'foo', {get: function() { return 2; }, configurable: true, enumerable: false}).foo", "2");
119 shouldBeFalse("var result = false; var o = Object.defineProperty(Object.defineProperty({}, 'foo', {get: function() { return 1; }, configurable: true, enumerable: true}), 'foo', {get: function() { return 2; }, configurable: true, enumerable: false}); for (x in o) result = true; result");
120 shouldBeTrue("var result = false; var o = Object.defineProperty(Object.defineProperty({}, 'foo', {get: function() { return 1; }, configurable: true, enumerable: false}), 'foo', {get: function() { return 2; }, configurable: true, enumerable: true}); for (x in o) result = true; result");
213 Object.defineProperty(anObj, 'slot1', {value: 'foo', enumerable: true});
215 Object.defineProperty(anObj, 'slot3', {value: 'baz', enumerable: false});