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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ | 589 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ |
590 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ | 590 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ |
591 T(PushPastSafeLength, \ | 591 T(PushPastSafeLength, \ |
592 "Pushing % elements on an array-like of length % " \ | 592 "Pushing % elements on an array-like of length % " \ |
593 "is disallowed, as the total surpasses 2**53-1") \ | 593 "is disallowed, as the total surpasses 2**53-1") \ |
594 T(ElementAfterRest, "Rest element must be last element") \ | 594 T(ElementAfterRest, "Rest element must be last element") \ |
595 T(BadSetterRestParameter, \ | 595 T(BadSetterRestParameter, \ |
596 "Setter function argument must not be a rest parameter") \ | 596 "Setter function argument must not be a rest parameter") \ |
597 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ | 597 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ |
598 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ | 598 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ |
| 599 T(ArgStringTerminatesParametersEarly, \ |
| 600 "Arg string terminates parameters early") \ |
| 601 T(UnexpectedEndOfArgString, "Unexpected end of arg string") \ |
599 T(RuntimeWrongNumArgs, "Runtime function given wrong number of arguments") \ | 602 T(RuntimeWrongNumArgs, "Runtime function given wrong number of arguments") \ |
600 T(SingleFunctionLiteral, "Single function literal required") \ | 603 T(SingleFunctionLiteral, "Single function literal required") \ |
601 T(SloppyFunction, \ | 604 T(SloppyFunction, \ |
602 "In non-strict mode code, functions can only be declared at top level, " \ | 605 "In non-strict mode code, functions can only be declared at top level, " \ |
603 "inside a block, or as the body of an if statement.") \ | 606 "inside a block, or as the body of an if statement.") \ |
604 T(SpeciesNotConstructor, \ | 607 T(SpeciesNotConstructor, \ |
605 "object.constructor[Symbol.species] is not a constructor") \ | 608 "object.constructor[Symbol.species] is not a constructor") \ |
606 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ | 609 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ |
607 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ | 610 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ |
608 T(StrictFunction, \ | 611 T(StrictFunction, \ |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 const MessageLocation* loc, | 737 const MessageLocation* loc, |
735 Handle<Object> message_obj, | 738 Handle<Object> message_obj, |
736 v8::Local<v8::Value> api_exception_obj); | 739 v8::Local<v8::Value> api_exception_obj); |
737 }; | 740 }; |
738 | 741 |
739 | 742 |
740 } // namespace internal | 743 } // namespace internal |
741 } // namespace v8 | 744 } // namespace v8 |
742 | 745 |
743 #endif // V8_MESSAGES_H_ | 746 #endif // V8_MESSAGES_H_ |
OLD | NEW |