| 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 24 matching lines...) Expand all Loading... |
| 35 PASS Object.defineProperty(/x/, 'lastIndex', {enumerable:true}); true threw exce
ption TypeError: Cannot redefine property: lastIndex. | 35 PASS Object.defineProperty(/x/, 'lastIndex', {enumerable:true}); true threw exce
ption TypeError: Cannot redefine property: lastIndex. |
| 36 PASS Object.defineProperty(/x/, 'lastIndex', {enumerable:false}); true is true | 36 PASS Object.defineProperty(/x/, 'lastIndex', {enumerable:false}); true is true |
| 37 PASS Object.defineProperty(/x/, 'lastIndex', {configurable:true}); true threw ex
ception TypeError: Cannot redefine property: lastIndex. | 37 PASS Object.defineProperty(/x/, 'lastIndex', {configurable:true}); true threw ex
ception TypeError: Cannot redefine property: lastIndex. |
| 38 PASS Object.defineProperty(/x/, 'lastIndex', {configurable:false}); true is true | 38 PASS Object.defineProperty(/x/, 'lastIndex', {configurable:false}); true is true |
| 39 PASS var re = Object.defineProperty(/x/, 'lastIndex', {writable:true}); re.lastI
ndex = 42; re.lastIndex is 42 | 39 PASS var re = Object.defineProperty(/x/, 'lastIndex', {writable:true}); re.lastI
ndex = 42; re.lastIndex is 42 |
| 40 PASS var re = Object.defineProperty(/x/, 'lastIndex', {writable:false}); re.last
Index = 42; re.lastIndex is 0 | 40 PASS var re = Object.defineProperty(/x/, 'lastIndex', {writable:false}); re.last
Index = 42; re.lastIndex is 0 |
| 41 PASS var re = Object.defineProperty(/x/, 'lastIndex', {value:42}); re.lastIndex
is 42 | 41 PASS var re = Object.defineProperty(/x/, 'lastIndex', {value:42}); re.lastIndex
is 42 |
| 42 PASS Object.defineProperty(Object.defineProperty(/x/, 'lastIndex', {writable:fal
se}), 'lastIndex', {writable:true}); true threw exception TypeError: Cannot rede
fine property: lastIndex. | 42 PASS Object.defineProperty(Object.defineProperty(/x/, 'lastIndex', {writable:fal
se}), 'lastIndex', {writable:true}); true threw exception TypeError: Cannot rede
fine property: lastIndex. |
| 43 PASS Object.defineProperty(Object.defineProperty(/x/, 'lastIndex', {writable:fal
se}), 'lastIndex', {value:42}); true threw exception TypeError: Cannot redefine
property: lastIndex. | 43 PASS Object.defineProperty(Object.defineProperty(/x/, 'lastIndex', {writable:fal
se}), 'lastIndex', {value:42}); true threw exception TypeError: Cannot redefine
property: lastIndex. |
| 44 PASS Object.defineProperty(Object.defineProperty(/x/, 'lastIndex', {writable:fal
se}), 'lastIndex', {value:0}); true is true | 44 PASS Object.defineProperty(Object.defineProperty(/x/, 'lastIndex', {writable:fal
se}), 'lastIndex', {value:0}); true is true |
| 45 PASS Object.defineProperty(/x/, 'lastIndex', {writable:false}).exec('') is null | 45 FAIL Object.defineProperty(/x/, 'lastIndex', {writable:false}).exec('') should b
e null. Threw exception TypeError: Cannot assign to read only property 'lastInde
x' of object '[object RegExp]' |
| 46 PASS Object.defineProperty(/x/, 'lastIndex', {writable:false}).exec('x') is ["x"
] | 46 PASS Object.defineProperty(/x/, 'lastIndex', {writable:false}).exec('x') is ["x"
] |
| 47 FAIL Object.defineProperty(/x/g, 'lastIndex', {writable:false}).exec('') should
throw an exception. Was null. | 47 PASS Object.defineProperty(/x/g, 'lastIndex', {writable:false}).exec('') threw e
xception TypeError: Cannot assign to read only property 'lastIndex' of object '[
object RegExp]'. |
| 48 FAIL Object.defineProperty(/x/g, 'lastIndex', {writable:false}).exec('x') should
throw an exception. Was x. | 48 PASS Object.defineProperty(/x/g, 'lastIndex', {writable:false}).exec('x') threw
exception TypeError: Cannot assign to read only property 'lastIndex' of object '
[object RegExp]'. |
| 49 PASS var re = /x/; Object.freeze(re); Object.isFrozen(re); is true | 49 PASS var re = /x/; Object.freeze(re); Object.isFrozen(re); is true |
| 50 PASS successfullyParsed is true | 50 PASS successfullyParsed is true |
| 51 | 51 |
| 52 TEST COMPLETE | 52 TEST COMPLETE |
| 53 | 53 |
| OLD | NEW |