| OLD | NEW |
| (Empty) |
| 1 Test to ensure correct behaviour of Object.defineProperties | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS Object.create() threw exception TypeError: Object prototype may only be an
Object or null.. | |
| 7 PASS Object.create('a string') threw exception TypeError: Object prototype may o
nly be an Object or null.. | |
| 8 PASS Object.create({}, 'a string') threw exception TypeError: Property descripto
r list must be an Object.. | |
| 9 PASS Object.create(null, 'a string') threw exception TypeError: Property descrip
tor list must be an Object.. | |
| 10 PASS JSON.stringify(Object.create(null,{property:{value:'foo', enumerable:true},
property2:{value:'foo', enumerable:true}})) is '{"property":"foo","property2":"
foo"}' | |
| 11 PASS JSON.stringify(Object.create({},{property:{value:'foo', enumerable:true}, p
roperty2:{value:'foo', enumerable:true}})) is '{"property":"foo","property2":"fo
o"}' | |
| 12 PASS JSON.stringify(Object.create({},{property:{value:'foo'}, property2:{value:'
foo', enumerable:true}})) is '{"property2":"foo"}' | |
| 13 PASS JSON.stringify(Object.create(null,{property:{value:'foo'}, property2:{value
:'foo', enumerable:true}})) is '{"property2":"foo"}' | |
| 14 PASS Object.getPrototypeOf(Object.create(Array.prototype)) is Array.prototype | |
| 15 PASS Object.getPrototypeOf(Object.create(null)) is null | |
| 16 PASS Object.create(null, DescriptorWithValueGetter).foo is true | |
| 17 PASS Object.create(null, DescriptorWithEnumerableGetter).foo is true | |
| 18 PASS Object.create(null, DescriptorWithConfigurableGetter).foo is true | |
| 19 PASS Object.create(null, DescriptorWithWritableGetter).foo is true | |
| 20 PASS Object.create(null, DescriptorWithGetGetter).foo is true | |
| 21 PASS Object.create(null, DescriptorWithSetGetter).foo is true | |
| 22 PASS successfullyParsed is true | |
| 23 | |
| 24 TEST COMPLETE | |
| 25 | |
| OLD | NEW |