Index: test/mjsunit/getter-in-prototype.js |
diff --git a/test/mjsunit/getter-in-prototype.js b/test/mjsunit/getter-in-prototype.js |
index dd26c533194c03b7703739d068ac095b48cb94c0..5563123e7969390ad24ef78af917951de7f3d2dd 100644 |
--- a/test/mjsunit/getter-in-prototype.js |
+++ b/test/mjsunit/getter-in-prototype.js |
@@ -31,9 +31,11 @@ |
var o = {}; |
var p = {}; |
p.__defineGetter__('x', function(){}); |
+p.__defineGetter__(0, function(){}); |
o.__proto__ = p; |
assertThrows("o.x = 42"); |
+assertThrows("o[0] = 42"); |
function f() { |
with(o) { |
@@ -48,3 +50,9 @@ function g() { |
x = 42; |
} |
assertThrows("g()"); |
+ |
+__proto__ = p; |
+function g2() { |
+ this[0] = 42; |
+} |
+assertThrows("g2()"); |