| 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("{")
|
|
|