Index: test/mjsunit/invalid-lhs.js |
diff --git a/test/mjsunit/invalid-lhs.js b/test/mjsunit/invalid-lhs.js |
index d28dc9ccf877c2d6a2ebea62e9682a78b8a99676..92929b68e5dcc291343c0e890a3a037782ab6ba1 100644 |
--- a/test/mjsunit/invalid-lhs.js |
+++ b/test/mjsunit/invalid-lhs.js |
@@ -33,7 +33,7 @@ assertThrows("12 = 12", ReferenceError); |
assertThrows("x++ = 12", ReferenceError); |
assertThrows("eval('var x') = 12", ReferenceError); |
assertThrows("if (false) 12 = 12", ReferenceError); |
-assertDoesNotThrow("if (false) eval('var x') = 12", ReferenceError); |
+assertDoesNotThrow("if (false) eval('var x') = 12"); |
// Pre- and post-fix operations: |
assertThrows("12++", ReferenceError); |
@@ -46,20 +46,20 @@ assertThrows("if (false) 12++", ReferenceError); |
assertThrows("if (false) 12--", ReferenceError); |
assertThrows("if (false) ++12", ReferenceError); |
assertThrows("if (false) --12", ReferenceError); |
-assertDoesNotThrow("if (false) ++(eval('12'))", ReferenceError); |
-assertDoesNotThrow("if (false) (eval('12'))++", ReferenceError); |
+assertDoesNotThrow("if (false) ++(eval('12'))"); |
+assertDoesNotThrow("if (false) (eval('12'))++"); |
// For in: |
assertThrows("for (12 in [1]) print(12);", SyntaxError); |
assertThrows("for (eval('var x') in [1]) print(12);", ReferenceError); |
assertThrows("if (false) for (12 in [1]) print(12);", SyntaxError); |
-assertDoesNotThrow("if (false) for (eval('0') in [1]) print(12);", ReferenceError); |
+assertDoesNotThrow("if (false) for (eval('0') in [1]) print(12);"); |
// For: |
assertThrows("for (12 = 1;;) print(12);", ReferenceError); |
assertThrows("for (eval('var x') = 1;;) print(12);", ReferenceError); |
assertThrows("if (false) for (12 = 1;;) print(12);", ReferenceError); |
-assertDoesNotThrow("if (false) for (eval('var x') = 1;;) print(12);", ReferenceError); |
+assertDoesNotThrow("if (false) for (eval('var x') = 1;;) print(12);"); |
// Assignments to 'this'. |
assertThrows("this = 42", ReferenceError); |