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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ | 574 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ |
575 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ | 575 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ |
576 T(PushPastSafeLength, \ | 576 T(PushPastSafeLength, \ |
577 "Pushing % elements on an array-like of length % " \ | 577 "Pushing % elements on an array-like of length % " \ |
578 "is disallowed, as the total surpasses 2**53-1") \ | 578 "is disallowed, as the total surpasses 2**53-1") \ |
579 T(ElementAfterRest, "Rest element must be last element in array") \ | 579 T(ElementAfterRest, "Rest element must be last element in array") \ |
580 T(BadSetterRestParameter, \ | 580 T(BadSetterRestParameter, \ |
581 "Setter function argument must not be a rest parameter") \ | 581 "Setter function argument must not be a rest parameter") \ |
582 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ | 582 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ |
583 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ | 583 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ |
| 584 T(ExpectedEndOfParameters, "Expected arg string to end here") \ |
584 T(RuntimeWrongNumArgs, "Runtime function given wrong number of arguments") \ | 585 T(RuntimeWrongNumArgs, "Runtime function given wrong number of arguments") \ |
585 T(SingleFunctionLiteral, "Single function literal required") \ | 586 T(SingleFunctionLiteral, "Single function literal required") \ |
586 T(SloppyFunction, \ | 587 T(SloppyFunction, \ |
587 "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, " \ |
588 "inside a block, or as the body of an if statement.") \ | 589 "inside a block, or as the body of an if statement.") \ |
589 T(SpeciesNotConstructor, \ | 590 T(SpeciesNotConstructor, \ |
590 "object.constructor[Symbol.species] is not a constructor") \ | 591 "object.constructor[Symbol.species] is not a constructor") \ |
591 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ | 592 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ |
592 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ | 593 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ |
593 T(StrictFunction, \ | 594 T(StrictFunction, \ |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 703 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
703 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, | 704 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, |
704 Handle<Object> data); | 705 Handle<Object> data); |
705 }; | 706 }; |
706 | 707 |
707 | 708 |
708 } // namespace internal | 709 } // namespace internal |
709 } // namespace v8 | 710 } // namespace v8 |
710 | 711 |
711 #endif // V8_MESSAGES_H_ | 712 #endif // V8_MESSAGES_H_ |
OLD | NEW |