Index: test/webkit/fast/regex/lastIndex-expected.txt |
diff --git a/test/webkit/fast/regex/lastIndex-expected.txt b/test/webkit/fast/regex/lastIndex-expected.txt |
index 1e0959c3f986cba7319ca62c189659193b671b80..acceee2dd6058dfbb3e2e0f3d6055577154768cf 100644 |
--- a/test/webkit/fast/regex/lastIndex-expected.txt |
+++ b/test/webkit/fast/regex/lastIndex-expected.txt |
@@ -44,8 +44,8 @@ PASS Object.defineProperty(Object.defineProperty(/x/, 'lastIndex', {writable:fal |
PASS Object.defineProperty(Object.defineProperty(/x/, 'lastIndex', {writable:false}), 'lastIndex', {value:0}); true is true |
PASS Object.defineProperty(/x/, 'lastIndex', {writable:false}).exec('') is null |
PASS Object.defineProperty(/x/, 'lastIndex', {writable:false}).exec('x') is ["x"] |
-FAIL Object.defineProperty(/x/g, 'lastIndex', {writable:false}).exec('') should throw an exception. Was null. |
-FAIL Object.defineProperty(/x/g, 'lastIndex', {writable:false}).exec('x') should throw an exception. Was x. |
+PASS Object.defineProperty(/x/g, 'lastIndex', {writable:false}).exec('') threw exception TypeError: Cannot assign to read only property 'lastIndex' of object '[object RegExp]'. |
+PASS Object.defineProperty(/x/g, 'lastIndex', {writable:false}).exec('x') threw exception TypeError: Cannot assign to read only property 'lastIndex' of object '[object RegExp]'. |
PASS var re = /x/; Object.freeze(re); Object.isFrozen(re); is true |
PASS successfullyParsed is true |