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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « src/json-parser.h ('k') | src/parsing/json-parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The infrastructure used for (localized) message reporting in V8. 5 // The infrastructure used for (localized) message reporting in V8.
6 // 6 //
7 // Note: there's a big unresolved issue about ownership of the data 7 // Note: there's a big unresolved issue about ownership of the data
8 // structures used by this framework. 8 // structures used by this framework.
9 9
10 #ifndef V8_MESSAGES_H_ 10 #ifndef V8_MESSAGES_H_
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \ 399 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \
400 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ 400 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \
401 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \ 401 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \
402 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \ 402 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \
403 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ 403 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \
404 T(InvalidLhsInPostfixOp, \ 404 T(InvalidLhsInPostfixOp, \
405 "Invalid left-hand side expression in postfix operation") \ 405 "Invalid left-hand side expression in postfix operation") \
406 T(InvalidLhsInPrefixOp, \ 406 T(InvalidLhsInPrefixOp, \
407 "Invalid left-hand side expression in prefix operation") \ 407 "Invalid left-hand side expression in prefix operation") \
408 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ 408 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \
409 T(JsonParseUnexpectedEOS, "Unexpected end of JSON input") \
410 T(JsonParseUnexpectedToken, "Unexpected token % in JSON at position %") \
411 T(JsonParseUnexpectedTokenNumber, "Unexpected number in JSON at position %") \
412 T(JsonParseUnexpectedTokenString, "Unexpected string in JSON at position %") \
409 T(LabelRedeclaration, "Label '%' has already been declared") \ 413 T(LabelRedeclaration, "Label '%' has already been declared") \
410 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ 414 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \
411 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ 415 T(MalformedRegExp, "Invalid regular expression: /%/: %") \
412 T(MalformedRegExpFlags, "Invalid regular expression flags") \ 416 T(MalformedRegExpFlags, "Invalid regular expression flags") \
413 T(ModuleExportUndefined, "Export '%' is not defined in module") \ 417 T(ModuleExportUndefined, "Export '%' is not defined in module") \
414 T(MultipleDefaultsInSwitch, \ 418 T(MultipleDefaultsInSwitch, \
415 "More than one default clause in switch statement") \ 419 "More than one default clause in switch statement") \
416 T(NewlineAfterThrow, "Illegal newline after throw") \ 420 T(NewlineAfterThrow, "Illegal newline after throw") \
417 T(NoCatchOrFinally, "Missing catch or finally after try") \ 421 T(NoCatchOrFinally, "Missing catch or finally after try") \
418 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ 422 T(NotIsvar, "builtin %%IS_VAR: not a variable") \
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 563 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
560 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 564 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
561 Handle<Object> data); 565 Handle<Object> data);
562 }; 566 };
563 567
564 568
565 } // namespace internal 569 } // namespace internal
566 } // namespace v8 570 } // namespace v8
567 571
568 #endif // V8_MESSAGES_H_ 572 #endif // V8_MESSAGES_H_
OLDNEW
« 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