Index: test/mjsunit/es6/arguments-iterator.js |
diff --git a/test/mjsunit/es6/arguments-iterator.js b/test/mjsunit/es6/arguments-iterator.js |
index 32d4b11ee1f58427dca47bfc6a8496ad3f3e8c8b..cf1e1f97ca32242770c0d915fde276aca85b6920 100644 |
--- a/test/mjsunit/es6/arguments-iterator.js |
+++ b/test/mjsunit/es6/arguments-iterator.js |
@@ -219,10 +219,7 @@ function TestArgumentsAsProto() { |
assertSame([][Symbol.iterator], o[Symbol.iterator]); |
assertFalse(o.hasOwnProperty(Symbol.iterator)); |
assertSame([][Symbol.iterator], o[Symbol.iterator]); |
- // This should throw, but currently it doesn't, because |
- // ExecutableAccessorInfo callbacks don't see the current strict mode. |
- // See note in accessors.cc:SetPropertyOnInstanceIfInherited. |
- o[Symbol.iterator] = 10; |
+ assertThrows(function () { o[Symbol.iterator] = 10 }); |
assertFalse(o.hasOwnProperty(Symbol.iterator)); |
assertEquals([][Symbol.iterator], o[Symbol.iterator]); |
assertSame([][Symbol.iterator], arguments[Symbol.iterator]); |