OLD | NEW |
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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, "Octal literals are not allowed in strict mode.") \ |
| 598 T(StrictOctalEscape, \ |
| 599 "Octal escape sequences are not allowed in strict mode.") \ |
598 T(StrictWith, "Strict mode code may not include a with statement") \ | 600 T(StrictWith, "Strict mode code may not include a with statement") \ |
599 T(TemplateOctalLiteral, \ | 601 T(TemplateOctalLiteral, \ |
600 "Octal literals are not allowed in template strings.") \ | 602 "Octal escape sequences are not allowed in template strings.") \ |
601 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ | 603 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ |
602 T(AwaitBindingIdentifier, \ | 604 T(AwaitBindingIdentifier, \ |
603 "'await' is not a valid identifier name in an async function") \ | 605 "'await' is not a valid identifier name in an async function") \ |
604 T(AwaitExpressionFormalParameter, \ | 606 T(AwaitExpressionFormalParameter, \ |
605 "Illegal await-expression in formal parameters of async function") \ | 607 "Illegal await-expression in formal parameters of async function") \ |
606 T(TooManyArguments, \ | 608 T(TooManyArguments, \ |
607 "Too many arguments in function call (only 65535 allowed)") \ | 609 "Too many arguments in function call (only 65535 allowed)") \ |
608 T(TooManyParameters, \ | 610 T(TooManyParameters, \ |
609 "Too many parameters in function definition (only 65535 allowed)") \ | 611 "Too many parameters in function definition (only 65535 allowed)") \ |
610 T(TooManySpreads, \ | 612 T(TooManySpreads, \ |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 706 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
705 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, | 707 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, |
706 Handle<Object> data); | 708 Handle<Object> data); |
707 }; | 709 }; |
708 | 710 |
709 | 711 |
710 } // namespace internal | 712 } // namespace internal |
711 } // namespace v8 | 713 } // namespace v8 |
712 | 714 |
713 #endif // V8_MESSAGES_H_ | 715 #endif // V8_MESSAGES_H_ |
OLD | NEW |