Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Unified Diff: test/mjsunit/messages.js

Issue 1758663002: Change syntax error message for illegal token. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: change webkit test expectations Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/messages.js
diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js
index 7deef0261582e1fef65c6efa7b34b96e67277dfd..091bfc2351188728f25843e190e4876d96cf4071 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);
+// kInvalidSyntax
+test(function() {
+ eval("'\n'");
+}, "Invalid syntax", SyntaxError);
+
//kJsonParseUnexpectedEOS
test(function() {
JSON.parse("{")

Powered by Google App Engine
This is Rietveld 408576698