Index: test/mjsunit/messages.js |
diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js |
index 8da7e6bd7b950420d214e64b2f880ba9c1080f59..772670a06c3de3eb1e2a496957b53282e9496df1 100644 |
--- a/test/mjsunit/messages.js |
+++ b/test/mjsunit/messages.js |
@@ -345,36 +345,35 @@ test(function() { |
eval("/a/x.test(\"a\");"); |
}, "Invalid regular expression flags", SyntaxError); |
-// kMalformedRegExp |
-test(function() { |
- /(/.test("a"); |
-}, "Invalid regular expression: /(/: Unterminated group", SyntaxError); |
- |
-// kParenthesisInArgString |
-test(function() { |
- new Function(")", ""); |
-}, "Function arg string contains parenthesis", SyntaxError); |
- |
-// kUnexpectedEOS |
+//kJsonParseUnexpectedEOS |
test(function() { |
JSON.parse("{") |
-}, "Unexpected end of input", SyntaxError); |
+}, "Unexpected end of JSON input", SyntaxError); |
-// kUnexpectedToken |
+// kJsonParseUnexpectedTokenAt |
test(function() { |
JSON.parse("/") |
-}, "Unexpected token /", SyntaxError); |
+}, "Unexpected token / in JSON at position 0", SyntaxError); |
-// kUnexpectedTokenNumber |
+// kJsonParseUnexpectedTokenNumberAt |
test(function() { |
JSON.parse("{ 1") |
-}, "Unexpected number", SyntaxError); |
+}, "Unexpected number in JSON at position 2", SyntaxError); |
-// kUnexpectedTokenString |
+// kJsonParseUnexpectedTokenStringAt |
test(function() { |
JSON.parse('"""') |
-}, "Unexpected string", SyntaxError); |
+}, "Unexpected string in JSON at position 2", SyntaxError); |
+// kMalformedRegExp |
+test(function() { |
+ /(/.test("a"); |
+}, "Invalid regular expression: /(/: Unterminated group", SyntaxError); |
+ |
+// kParenthesisInArgString |
+test(function() { |
+ new Function(")", ""); |
+}, "Function arg string contains parenthesis", SyntaxError); |
// === ReferenceError === |