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

Side by Side Diff: src/messages.h

Issue 2279363002: Remove duplicated code from comma-separated Expression parsing (Closed)
Patch Set: Remove unused message Created 4 years, 3 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.h » ('j') | src/parsing/parser-base.h » ('J')
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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ 447 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \
448 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ 448 T(MalformedRegExp, "Invalid regular expression: /%/: %") \
449 T(MalformedRegExpFlags, "Invalid regular expression flags") \ 449 T(MalformedRegExpFlags, "Invalid regular expression flags") \
450 T(ModuleExportUndefined, "Export '%' is not defined in module") \ 450 T(ModuleExportUndefined, "Export '%' is not defined in module") \
451 T(MultipleDefaultsInSwitch, \ 451 T(MultipleDefaultsInSwitch, \
452 "More than one default clause in switch statement") \ 452 "More than one default clause in switch statement") \
453 T(NewlineAfterThrow, "Illegal newline after throw") \ 453 T(NewlineAfterThrow, "Illegal newline after throw") \
454 T(NoCatchOrFinally, "Missing catch or finally after try") \ 454 T(NoCatchOrFinally, "Missing catch or finally after try") \
455 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ 455 T(NotIsvar, "builtin %%IS_VAR: not a variable") \
456 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ 456 T(ParamAfterRest, "Rest parameter must be last formal parameter") \
457 T(InvalidRestParameter, \
458 "Rest parameter must be an identifier or destructuring pattern") \
adamk 2016/08/26 20:13:03 I don't think there's much lost for users in losin
Dan Ehrenberg 2016/08/26 22:48:53 This doesn't make me all that happy. The old messa
nickie 2016/08/29 08:42:59 In principle I would agree with Dan. But this err
459 T(PushPastSafeLength, \ 457 T(PushPastSafeLength, \
460 "Pushing % elements on an array-like of length % " \ 458 "Pushing % elements on an array-like of length % " \
461 "is disallowed, as the total surpasses 2**53-1") \ 459 "is disallowed, as the total surpasses 2**53-1") \
462 T(ElementAfterRest, "Rest element must be last element in array") \ 460 T(ElementAfterRest, "Rest element must be last element in array") \
463 T(BadSetterRestParameter, \ 461 T(BadSetterRestParameter, \
464 "Setter function argument must not be a rest parameter") \ 462 "Setter function argument must not be a rest parameter") \
465 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ 463 T(ParamDupe, "Duplicate parameter name not allowed in this context") \
466 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ 464 T(ParenthesisInArgString, "Function arg string contains parenthesis") \
467 T(RuntimeWrongNumArgs, "Runtime function given wrong number of arguments") \ 465 T(RuntimeWrongNumArgs, "Runtime function given wrong number of arguments") \
468 T(SingleFunctionLiteral, "Single function literal required") \ 466 T(SingleFunctionLiteral, "Single function literal required") \
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 580 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
583 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, 581 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate,
584 Handle<Object> data); 582 Handle<Object> data);
585 }; 583 };
586 584
587 585
588 } // namespace internal 586 } // namespace internal
589 } // namespace v8 587 } // namespace v8
590 588
591 #endif // V8_MESSAGES_H_ 589 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.h » ('j') | src/parsing/parser-base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698