Index: test/mjsunit/messages.js |
diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js |
index 7deef0261582e1fef65c6efa7b34b96e67277dfd..16cf99037f64a3661f453c924b37107bde4e7b8b 100644 |
--- a/test/mjsunit/messages.js |
+++ b/test/mjsunit/messages.js |
@@ -339,6 +339,11 @@ test(function() { |
eval("/a/x.test(\"a\");"); |
}, "Invalid regular expression flags", SyntaxError); |
+// kInvalidOrUnexpectedToken |
+test(function() { |
+ eval("'\n'"); |
+}, "Invalid or unexpected token", SyntaxError); |
+ |
//kJsonParseUnexpectedEOS |
test(function() { |
JSON.parse("{") |