diff options
Diffstat (limited to 'src/3rdparty/v8/test/mjsunit/with-readonly.js')
-rw-r--r-- | src/3rdparty/v8/test/mjsunit/with-readonly.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/3rdparty/v8/test/mjsunit/with-readonly.js b/src/3rdparty/v8/test/mjsunit/with-readonly.js index e29520a..29982b3 100644 --- a/src/3rdparty/v8/test/mjsunit/with-readonly.js +++ b/src/3rdparty/v8/test/mjsunit/with-readonly.js @@ -27,6 +27,8 @@ // Test that readonly variables are treated correctly. +// Flags: --es5_readonly + // Create an object with a read-only length property in the prototype // chain by putting the string split function in the prototype chain. var o = {}; @@ -36,8 +38,8 @@ function f() { with (o) { length = 23; length = 24; - assertEquals(24, length); + assertEquals(2, length); } + assertEquals(2, o.length); } f(); - |