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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 "Octal literals are not allowed in template strings.") \ | 488 "Octal literals are not allowed in template strings.") \ |
489 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ | 489 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ |
490 T(TooManyArguments, \ | 490 T(TooManyArguments, \ |
491 "Too many arguments in function call (only 65535 allowed)") \ | 491 "Too many arguments in function call (only 65535 allowed)") \ |
492 T(TooManyParameters, \ | 492 T(TooManyParameters, \ |
493 "Too many parameters in function definition (only 65535 allowed)") \ | 493 "Too many parameters in function definition (only 65535 allowed)") \ |
494 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ | 494 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ |
495 T(TypedArrayTooShort, \ | 495 T(TypedArrayTooShort, \ |
496 "Derived TypedArray constructor created an array which was too small") \ | 496 "Derived TypedArray constructor created an array which was too small") \ |
497 T(UnexpectedEOS, "Unexpected end of input") \ | 497 T(UnexpectedEOS, "Unexpected end of input") \ |
| 498 T(UnexpectedFunctionSent, \ |
| 499 "function.sent expression is not allowed outside a generator") \ |
498 T(UnexpectedReserved, "Unexpected reserved word") \ | 500 T(UnexpectedReserved, "Unexpected reserved word") \ |
499 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ | 501 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ |
500 T(UnexpectedSuper, "'super' keyword unexpected here") \ | 502 T(UnexpectedSuper, "'super' keyword unexpected here") \ |
501 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ | 503 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ |
502 T(UnexpectedTemplateString, "Unexpected template string") \ | 504 T(UnexpectedTemplateString, "Unexpected template string") \ |
503 T(UnexpectedToken, "Unexpected token %") \ | 505 T(UnexpectedToken, "Unexpected token %") \ |
504 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ | 506 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ |
505 T(UnexpectedTokenNumber, "Unexpected number") \ | 507 T(UnexpectedTokenNumber, "Unexpected number") \ |
506 T(UnexpectedTokenString, "Unexpected string") \ | 508 T(UnexpectedTokenString, "Unexpected string") \ |
507 T(UnexpectedTokenRegExp, "Unexpected regular expression") \ | 509 T(UnexpectedTokenRegExp, "Unexpected regular expression") \ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 557 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
556 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 558 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
557 Handle<Object> data); | 559 Handle<Object> data); |
558 }; | 560 }; |
559 | 561 |
560 | 562 |
561 } // namespace internal | 563 } // namespace internal |
562 } // namespace v8 | 564 } // namespace v8 |
563 | 565 |
564 #endif // V8_MESSAGES_H_ | 566 #endif // V8_MESSAGES_H_ |
OLD | NEW |