Index: test/mjsunit/compiler/literals.js |
diff --git a/test/mjsunit/compiler/literals.js b/test/mjsunit/compiler/literals.js |
index 3bda9fc47235329ab3f7cf5702f9b99cb59859c3..49de2e10f23e709b41986e93f9ea8bdc85b00fa7 100644 |
--- a/test/mjsunit/compiler/literals.js |
+++ b/test/mjsunit/compiler/literals.js |
@@ -71,6 +71,10 @@ assertThrows('"\\u111G"'); |
assertEquals("\\x1G", /\x1G/.source); |
assertEquals("\\u111G", /\u111G/.source); |
+// Test that octal literals continue to be forbidden in template even |
+// when followed by a string containing an octal literal. |
+assertThrows('`\\1`\n"\\1"'); |
+ |
// Test some materialized array literals. |
assertEquals([1,2,3,4], eval('[1,2,3,4]')); |
assertEquals([[1,2],3,4], eval('[[1,2],3,4]')); |