Index: test/mjsunit/strict-mode.js |
diff --git a/test/mjsunit/strict-mode.js b/test/mjsunit/strict-mode.js |
index 30234ba6fa7aac65e68c0bc8ab16cda4750a3921..9c9bdfd52d42662f0dcb13e22402e8fc8f1cf5a9 100644 |
--- a/test/mjsunit/strict-mode.js |
+++ b/test/mjsunit/strict-mode.js |
@@ -1051,14 +1051,20 @@ function CheckPillDescriptor(func, name) { |
} |
assertThrows(function() { strict.caller; }, TypeError); |
assertThrows(function() { strict.arguments; }, TypeError); |
+ assertThrows(function() { strict.caller = 42; }, TypeError); |
+ assertThrows(function() { strict.arguments = 42; }, TypeError); |
var another = new Function("'use strict'"); |
assertThrows(function() { another.caller; }, TypeError); |
assertThrows(function() { another.arguments; }, TypeError); |
+ assertThrows(function() { another.caller = 42; }, TypeError); |
+ assertThrows(function() { another.arguments = 42; }, TypeError); |
var third = (function() { "use strict"; return function() {}; })(); |
assertThrows(function() { third.caller; }, TypeError); |
assertThrows(function() { third.arguments; }, TypeError); |
+ assertThrows(function() { third.caller = 42; }, TypeError); |
+ assertThrows(function() { third.arguments = 42; }, TypeError); |
CheckPillDescriptor(strict, "caller"); |
CheckPillDescriptor(strict, "arguments"); |