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

Side by Side Diff: src/messages.h

Issue 1758663002: Change syntax error message for illegal token. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comment Created 4 years, 9 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 | « no previous file | src/parsing/parser-base.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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 T(InvalidEscapedMetaProperty, "'%' must not contain escaped characters") \ 388 T(InvalidEscapedMetaProperty, "'%' must not contain escaped characters") \
389 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ 389 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \
390 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \ 390 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \
391 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \ 391 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \
392 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ 392 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \
393 T(InvalidLhsInPostfixOp, \ 393 T(InvalidLhsInPostfixOp, \
394 "Invalid left-hand side expression in postfix operation") \ 394 "Invalid left-hand side expression in postfix operation") \
395 T(InvalidLhsInPrefixOp, \ 395 T(InvalidLhsInPrefixOp, \
396 "Invalid left-hand side expression in prefix operation") \ 396 "Invalid left-hand side expression in prefix operation") \
397 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ 397 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \
398 T(InvalidOrUnexpectedToken, "Invalid or unexpected token") \
398 T(JsonParseUnexpectedEOS, "Unexpected end of JSON input") \ 399 T(JsonParseUnexpectedEOS, "Unexpected end of JSON input") \
399 T(JsonParseUnexpectedToken, "Unexpected token % in JSON at position %") \ 400 T(JsonParseUnexpectedToken, "Unexpected token % in JSON at position %") \
400 T(JsonParseUnexpectedTokenNumber, "Unexpected number in JSON at position %") \ 401 T(JsonParseUnexpectedTokenNumber, "Unexpected number in JSON at position %") \
401 T(JsonParseUnexpectedTokenString, "Unexpected string in JSON at position %") \ 402 T(JsonParseUnexpectedTokenString, "Unexpected string in JSON at position %") \
402 T(LabelRedeclaration, "Label '%' has already been declared") \ 403 T(LabelRedeclaration, "Label '%' has already been declared") \
403 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ 404 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \
404 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ 405 T(MalformedRegExp, "Invalid regular expression: /%/: %") \
405 T(MalformedRegExpFlags, "Invalid regular expression flags") \ 406 T(MalformedRegExpFlags, "Invalid regular expression flags") \
406 T(ModuleExportUndefined, "Export '%' is not defined in module") \ 407 T(ModuleExportUndefined, "Export '%' is not defined in module") \
407 T(MultipleDefaultsInSwitch, \ 408 T(MultipleDefaultsInSwitch, \
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 554 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
554 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 555 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
555 Handle<Object> data); 556 Handle<Object> data);
556 }; 557 };
557 558
558 559
559 } // namespace internal 560 } // namespace internal
560 } // namespace v8 561 } // namespace v8
561 562
562 #endif // V8_MESSAGES_H_ 563 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser-base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698