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

Side by Side Diff: src/messages.h

Issue 2510873005: A decimal integer literal with a leading 0 is now an error in strict mode. (Closed)
Patch Set: Created 4 years, 1 month 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.cc » ('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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 T(SloppyFunction, \ 587 T(SloppyFunction, \
588 "In non-strict mode code, functions can only be declared at top level, " \ 588 "In non-strict mode code, functions can only be declared at top level, " \
589 "inside a block, or as the body of an if statement.") \ 589 "inside a block, or as the body of an if statement.") \
590 T(SpeciesNotConstructor, \ 590 T(SpeciesNotConstructor, \
591 "object.constructor[Symbol.species] is not a constructor") \ 591 "object.constructor[Symbol.species] is not a constructor") \
592 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ 592 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \
593 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ 593 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \
594 T(StrictFunction, \ 594 T(StrictFunction, \
595 "In strict mode code, functions can only be declared at top level or " \ 595 "In strict mode code, functions can only be declared at top level or " \
596 "inside a block.") \ 596 "inside a block.") \
597 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ 597 T(StrictOctalLiteral, \
598 "Number literals must not have a '0' prefix in strict mode.") \
Dan Ehrenberg 2016/11/18 17:13:51 This isn't quite right. 0b1 is a number literal al
599 T(StrictOctalEscape, \
600 "Octal escape sequences are not allowed in strict mode.") \
598 T(StrictWith, "Strict mode code may not include a with statement") \ 601 T(StrictWith, "Strict mode code may not include a with statement") \
599 T(TemplateOctalLiteral, \ 602 T(TemplateOctalLiteral, \
600 "Octal literals are not allowed in template strings.") \ 603 "Octal escape sequences are not allowed in template strings.") \
601 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ 604 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \
602 T(AwaitBindingIdentifier, \ 605 T(AwaitBindingIdentifier, \
603 "'await' is not a valid identifier name in an async function") \ 606 "'await' is not a valid identifier name in an async function") \
604 T(AwaitExpressionFormalParameter, \ 607 T(AwaitExpressionFormalParameter, \
605 "Illegal await-expression in formal parameters of async function") \ 608 "Illegal await-expression in formal parameters of async function") \
606 T(TooManyArguments, \ 609 T(TooManyArguments, \
607 "Too many arguments in function call (only 65535 allowed)") \ 610 "Too many arguments in function call (only 65535 allowed)") \
608 T(TooManyParameters, \ 611 T(TooManyParameters, \
609 "Too many parameters in function definition (only 65535 allowed)") \ 612 "Too many parameters in function definition (only 65535 allowed)") \
610 T(TooManySpreads, \ 613 T(TooManySpreads, \
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 707 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
705 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, 708 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate,
706 Handle<Object> data); 709 Handle<Object> data);
707 }; 710 };
708 711
709 712
710 } // namespace internal 713 } // namespace internal
711 } // namespace v8 714 } // namespace v8
712 715
713 #endif // V8_MESSAGES_H_ 716 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | src/parsing/parser-base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698