Index: test/mjsunit/override-read-only-property.js |
diff --git a/test/mjsunit/override-read-only-property.js b/test/mjsunit/override-read-only-property.js |
index b8fa5015a387b17e03ac437a232659dc6b9a7467..f8114a66016ca6a81ade6a865a341ae800b0588e 100644 |
--- a/test/mjsunit/override-read-only-property.js |
+++ b/test/mjsunit/override-read-only-property.js |
@@ -38,19 +38,19 @@ F.prototype = Number; |
var original_number_max = Number.MAX_VALUE; |
// Assignment to a property which does not exist on the object itself, |
-// but is read-only in a prototype takes effect. |
+// but is read-only in a prototype does not take effect. |
var f = new F(); |
assertEquals(original_number_max, f.MAX_VALUE); |
f.MAX_VALUE = 42; |
-assertEquals(42, f.MAX_VALUE); |
+assertEquals(original_number_max, f.MAX_VALUE); |
// Assignment to a property which does not exist on the object itself, |
-// but is read-only in a prototype takes effect. |
+// but is read-only in a prototype does not take effect. |
f = new F(); |
with (f) { |
MAX_VALUE = 42; |
} |
-assertEquals(42, f.MAX_VALUE); |
+assertEquals(original_number_max, f.MAX_VALUE); |
// Assignment to read-only property on the object itself is ignored. |
Number.MAX_VALUE = 42; |