Index: test/mjsunit/strict-mode.js |
diff --git a/test/mjsunit/strict-mode.js b/test/mjsunit/strict-mode.js |
index fbba64ed66606c125dbbec74a5849402c3b41144..e0e5e8369e8d0a948d095056fafddfc346fb2c67 100644 |
--- a/test/mjsunit/strict-mode.js |
+++ b/test/mjsunit/strict-mode.js |
@@ -291,6 +291,13 @@ CheckStrictMode("function strict() { var variable; delete variable; }", |
SyntaxError); |
CheckStrictMode("var variable; delete variable;", SyntaxError); |
+(function TestStrictDelete() { |
+ "use strict"; |
+ // "delete this" is allowed in strict mode and should work. |
+ function strict_delete() { delete this; } |
+ strict_delete(); |
+})(); |
+ |
// Prefix unary operators other than delete, ++, -- are valid in strict mode |
(function StrictModeUnaryOperators() { |
"use strict"; |