OLD | NEW |
1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 the V8 project authors. All rights reserved. |
2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions | 5 # modification, are permitted provided that the following conditions |
6 # are met: | 6 # are met: |
7 # 1. Redistributions of source code must retain the above copyright | 7 # 1. Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # 2. Redistributions in binary form must reproduce the above copyright | 9 # 2. Redistributions in binary form must reproduce the above copyright |
10 # notice, this list of conditions and the following disclaimer in the | 10 # notice, this list of conditions and the following disclaimer in the |
(...skipping 27 matching lines...) Expand all Loading... |
38 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty([1,2,3
], 'foo', {value:1, configurable: true}), 'foo')) is JSON.stringify({value: 1, w
ritable: false, enumerable: false, configurable: true}) | 38 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty([1,2,3
], 'foo', {value:1, configurable: true}), 'foo')) is JSON.stringify({value: 1, w
ritable: false, enumerable: false, configurable: true}) |
39 PASS Object.getOwnPropertyDescriptor(Object.defineProperty([1,2,3], '1', {value:
'foo', configurable: true}), '1').value is 'foo' | 39 PASS Object.getOwnPropertyDescriptor(Object.defineProperty([1,2,3], '1', {value:
'foo', configurable: true}), '1').value is 'foo' |
40 PASS a=[1,2,3], Object.defineProperty(a, '1', {value:'foo', configurable: true})
, a[1] is 'foo' | 40 PASS a=[1,2,3], Object.defineProperty(a, '1', {value:'foo', configurable: true})
, a[1] is 'foo' |
41 PASS Object.getOwnPropertyDescriptor(Object.defineProperty([1,2,3], '1', {get:ge
tter, configurable: true}), '1').get is getter | 41 PASS Object.getOwnPropertyDescriptor(Object.defineProperty([1,2,3], '1', {get:ge
tter, configurable: true}), '1').get is getter |
42 PASS Object.defineProperty([1,2,3], '1', {get:getter, configurable: true})[1] th
rew exception called getter. | 42 PASS Object.defineProperty([1,2,3], '1', {get:getter, configurable: true})[1] th
rew exception called getter. |
43 PASS Object.defineProperty() threw exception TypeError: Object.defineProperty ca
lled on non-object. | 43 PASS Object.defineProperty() threw exception TypeError: Object.defineProperty ca
lled on non-object. |
44 PASS Object.defineProperty(null) threw exception TypeError: Object.definePropert
y called on non-object. | 44 PASS Object.defineProperty(null) threw exception TypeError: Object.definePropert
y called on non-object. |
45 PASS Object.defineProperty('foo') threw exception TypeError: Object.defineProper
ty called on non-object. | 45 PASS Object.defineProperty('foo') threw exception TypeError: Object.defineProper
ty called on non-object. |
46 PASS Object.defineProperty({}) threw exception TypeError: Property description m
ust be an object: undefined. | 46 PASS Object.defineProperty({}) threw exception TypeError: Property description m
ust be an object: undefined. |
47 PASS Object.defineProperty({}, 'foo') threw exception TypeError: Property descri
ption must be an object: undefined. | 47 PASS Object.defineProperty({}, 'foo') threw exception TypeError: Property descri
ption must be an object: undefined. |
48 PASS Object.defineProperty({}, 'foo', {get:undefined, value:true}).foo threw exc
eption TypeError: Invalid property. A property cannot both have accessors and b
e writable or have a value, #<Object>. | 48 PASS Object.defineProperty({}, 'foo', {get:undefined, value:true}).foo threw exc
eption TypeError: Invalid property descriptor. Cannot both specify accessors and
a value or writable attribute, #<Object>. |
49 PASS Object.defineProperty({get foo() { return true; } }, 'foo', {configurable:f
alse}).foo is true | 49 PASS Object.defineProperty({get foo() { return true; } }, 'foo', {configurable:f
alse}).foo is true |
50 PASS Object.defineProperty(createUnconfigurableProperty({}, 'foo'), 'foo', {conf
igurable: true}) threw exception TypeError: Cannot redefine property: foo. | 50 PASS Object.defineProperty(createUnconfigurableProperty({}, 'foo'), 'foo', {conf
igurable: true}) threw exception TypeError: Cannot redefine property: foo. |
51 PASS Object.defineProperty(createUnconfigurableProperty({}, 'foo'), 'foo', {writ
able: true}) threw exception TypeError: Cannot redefine property: foo. | 51 PASS Object.defineProperty(createUnconfigurableProperty({}, 'foo'), 'foo', {writ
able: true}) threw exception TypeError: Cannot redefine property: foo. |
52 PASS Object.defineProperty(createUnconfigurableProperty({}, 'foo'), 'foo', {enum
erable: true}) threw exception TypeError: Cannot redefine property: foo. | 52 PASS Object.defineProperty(createUnconfigurableProperty({}, 'foo'), 'foo', {enum
erable: true}) threw exception TypeError: Cannot redefine property: foo. |
53 PASS Object.defineProperty(createUnconfigurableProperty({}, 'foo', false, true),
'foo', {enumerable: false}), 'foo' threw exception TypeError: Cannot redefine p
roperty: foo. | 53 PASS Object.defineProperty(createUnconfigurableProperty({}, 'foo', false, true),
'foo', {enumerable: false}), 'foo' threw exception TypeError: Cannot redefine p
roperty: foo. |
54 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty(create
UnconfigurableProperty({}, 'foo', true), 'foo', {writable: false}), 'foo')) is J
SON.stringify({value: 1, writable: false, enumerable: false, configurable: false
}) | 54 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty(create
UnconfigurableProperty({}, 'foo', true), 'foo', {writable: false}), 'foo')) is J
SON.stringify({value: 1, writable: false, enumerable: false, configurable: false
}) |
55 PASS Object.defineProperty({}, 'foo', {value:1, get: function(){}}) threw except
ion TypeError: Invalid property. A property cannot both have accessors and be w
ritable or have a value, #<Object>. | 55 PASS Object.defineProperty({}, 'foo', {value:1, get: function(){}}) threw except
ion TypeError: Invalid property descriptor. Cannot both specify accessors and a
value or writable attribute, #<Object>. |
56 PASS Object.defineProperty({}, 'foo', {value:1, set: function(){}}) threw except
ion TypeError: Invalid property. A property cannot both have accessors and be w
ritable or have a value, #<Object>. | 56 PASS Object.defineProperty({}, 'foo', {value:1, set: function(){}}) threw except
ion TypeError: Invalid property descriptor. Cannot both specify accessors and a
value or writable attribute, #<Object>. |
57 PASS Object.defineProperty({}, 'foo', {writable:true, get: function(){}}) threw
exception TypeError: Invalid property. A property cannot both have accessors an
d be writable or have a value, #<Object>. | 57 PASS Object.defineProperty({}, 'foo', {writable:true, get: function(){}}) threw
exception TypeError: Invalid property descriptor. Cannot both specify accessors
and a value or writable attribute, #<Object>. |
58 PASS Object.defineProperty({}, 'foo', {writable:true, set: function(){}}) threw
exception TypeError: Invalid property. A property cannot both have accessors an
d be writable or have a value, #<Object>. | 58 PASS Object.defineProperty({}, 'foo', {writable:true, set: function(){}}) threw
exception TypeError: Invalid property descriptor. Cannot both specify accessors
and a value or writable attribute, #<Object>. |
59 PASS Object.defineProperty({}, 'foo', {get: null}) threw exception TypeError: Ge
tter must be a function: null. | 59 PASS Object.defineProperty({}, 'foo', {get: null}) threw exception TypeError: Ge
tter must be a function: null. |
60 PASS Object.defineProperty({}, 'foo', {set: null}) threw exception TypeError: Se
tter must be a function: null. | 60 PASS Object.defineProperty({}, 'foo', {set: null}) threw exception TypeError: Se
tter must be a function: null. |
61 PASS Object.defineProperty({}, 'foo', {set: setter}).foo='test' threw exception
called setter. | 61 PASS Object.defineProperty({}, 'foo', {set: setter}).foo='test' threw exception
called setter. |
62 PASS Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter}), 'foo
', {set: setter1}) threw exception TypeError: Cannot redefine property: foo. | 62 PASS Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter}), 'foo
', {set: setter1}) threw exception TypeError: Cannot redefine property: foo. |
63 PASS Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter}), 'foo
', {get: getter1}) threw exception TypeError: Cannot redefine property: foo. | 63 PASS Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter}), 'foo
', {get: getter1}) threw exception TypeError: Cannot redefine property: foo. |
64 PASS Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter}), 'foo
', {value: 1}) threw exception TypeError: Cannot redefine property: foo. | 64 PASS Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter}), 'foo
', {value: 1}) threw exception TypeError: Cannot redefine property: foo. |
65 PASS Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter, config
urable: true}), 'foo', {set: setter1}).foo='test' threw exception called setter1
. | 65 PASS Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter, config
urable: true}), 'foo', {set: setter1}).foo='test' threw exception called setter1
. |
66 PASS Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter, config
urable: true}), 'foo', {get: getter1}).foo threw exception called getter1. | 66 PASS Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter, config
urable: true}), 'foo', {get: getter1}).foo threw exception called getter1. |
67 PASS Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter, config
urable: true}), 'foo', {value: true}).foo is true | 67 PASS Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter, config
urable: true}), 'foo', {value: true}).foo is true |
68 PASS 'foo' in Object.defineProperty(Object.defineProperty({}, 'foo', {set: sette
r, configurable: true}), 'foo', {writable: true}) is true | 68 PASS 'foo' in Object.defineProperty(Object.defineProperty({}, 'foo', {set: sette
r, configurable: true}), 'foo', {writable: true}) is true |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 PASS anObj.slot5 is 123 | 167 PASS anObj.slot5 is 123 |
168 PASS anObj._Slot5 is 123 | 168 PASS anObj._Slot5 is 123 |
169 PASS Object.getOwnPropertyDescriptor(anObj, 'slot5') is undefined. | 169 PASS Object.getOwnPropertyDescriptor(anObj, 'slot5') is undefined. |
170 PASS anObj.slot5 is 456 | 170 PASS anObj.slot5 is 456 |
171 PASS anObj._Slot5 is 123 | 171 PASS anObj._Slot5 is 123 |
172 PASS Object.getOwnPropertyDescriptor(anObj, 'slot5').value is 456 | 172 PASS Object.getOwnPropertyDescriptor(anObj, 'slot5').value is 456 |
173 PASS successfullyParsed is true | 173 PASS successfullyParsed is true |
174 | 174 |
175 TEST COMPLETE | 175 TEST COMPLETE |
176 | 176 |
OLD | NEW |