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