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

Unified Diff: src/messages.h

Issue 1681513002: [json parser] add position to error message. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix BUILD.gn 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
« no previous file with comments | « src/json-parser.h ('k') | src/parsing/json-parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.h
diff --git a/src/messages.h b/src/messages.h
index c8a072761fb8cc5dfe57552986f5adc4682cdc58..af1538a1aa44a7e03509531c4eb0145d6a95bd0b 100644
--- a/src/messages.h
+++ b/src/messages.h
@@ -406,6 +406,10 @@ class CallSite {
T(InvalidLhsInPrefixOp, \
"Invalid left-hand side expression in prefix operation") \
T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \
+ T(JsonParseUnexpectedEOS, "Unexpected end of JSON input") \
+ T(JsonParseUnexpectedToken, "Unexpected token % in JSON at position %") \
+ T(JsonParseUnexpectedTokenNumber, "Unexpected number in JSON at position %") \
+ T(JsonParseUnexpectedTokenString, "Unexpected string in JSON at position %") \
T(LabelRedeclaration, "Label '%' has already been declared") \
T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \
T(MalformedRegExp, "Invalid regular expression: /%/: %") \
« no previous file with comments | « src/json-parser.h ('k') | src/parsing/json-parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698