| 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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 T(ModuleExportUndefined, "Export '%' is not defined in module") \ | 581 T(ModuleExportUndefined, "Export '%' is not defined in module") \ |
| 582 T(MultipleDefaultsInSwitch, \ | 582 T(MultipleDefaultsInSwitch, \ |
| 583 "More than one default clause in switch statement") \ | 583 "More than one default clause in switch statement") \ |
| 584 T(NewlineAfterThrow, "Illegal newline after throw") \ | 584 T(NewlineAfterThrow, "Illegal newline after throw") \ |
| 585 T(NoCatchOrFinally, "Missing catch or finally after try") \ | 585 T(NoCatchOrFinally, "Missing catch or finally after try") \ |
| 586 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ | 586 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ |
| 587 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ | 587 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ |
| 588 T(PushPastSafeLength, \ | 588 T(PushPastSafeLength, \ |
| 589 "Pushing % elements on an array-like of length % " \ | 589 "Pushing % elements on an array-like of length % " \ |
| 590 "is disallowed, as the total surpasses 2**53-1") \ | 590 "is disallowed, as the total surpasses 2**53-1") \ |
| 591 T(ElementAfterRest, "Rest element must be last element in array") \ | 591 T(ElementAfterRest, "Rest element must be last element") \ |
| 592 T(BadSetterRestParameter, \ | 592 T(BadSetterRestParameter, \ |
| 593 "Setter function argument must not be a rest parameter") \ | 593 "Setter function argument must not be a rest parameter") \ |
| 594 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ | 594 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ |
| 595 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ | 595 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ |
| 596 T(RuntimeWrongNumArgs, "Runtime function given wrong number of arguments") \ | 596 T(RuntimeWrongNumArgs, "Runtime function given wrong number of arguments") \ |
| 597 T(SingleFunctionLiteral, "Single function literal required") \ | 597 T(SingleFunctionLiteral, "Single function literal required") \ |
| 598 T(SloppyFunction, \ | 598 T(SloppyFunction, \ |
| 599 "In non-strict mode code, functions can only be declared at top level, " \ | 599 "In non-strict mode code, functions can only be declared at top level, " \ |
| 600 "inside a block, or as the body of an if statement.") \ | 600 "inside a block, or as the body of an if statement.") \ |
| 601 T(SpeciesNotConstructor, \ | 601 T(SpeciesNotConstructor, \ |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 const MessageLocation* loc, | 730 const MessageLocation* loc, |
| 731 Handle<Object> message_obj, | 731 Handle<Object> message_obj, |
| 732 v8::Local<v8::Value> api_exception_obj); | 732 v8::Local<v8::Value> api_exception_obj); |
| 733 }; | 733 }; |
| 734 | 734 |
| 735 | 735 |
| 736 } // namespace internal | 736 } // namespace internal |
| 737 } // namespace v8 | 737 } // namespace v8 |
| 738 | 738 |
| 739 #endif // V8_MESSAGES_H_ | 739 #endif // V8_MESSAGES_H_ |
| OLD | NEW |