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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 T(TooManyParameters, \ | 586 T(TooManyParameters, \ |
587 "Too many parameters in function definition (only 65535 allowed)") \ | 587 "Too many parameters in function definition (only 65535 allowed)") \ |
588 T(TooManySpreads, \ | 588 T(TooManySpreads, \ |
589 "Literal containing too many nested spreads (up to 65534 allowed)") \ | 589 "Literal containing too many nested spreads (up to 65534 allowed)") \ |
590 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ | 590 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ |
591 T(TypedArrayTooShort, \ | 591 T(TypedArrayTooShort, \ |
592 "Derived TypedArray constructor created an array which was too small") \ | 592 "Derived TypedArray constructor created an array which was too small") \ |
593 T(UnexpectedEOS, "Unexpected end of input") \ | 593 T(UnexpectedEOS, "Unexpected end of input") \ |
594 T(UnexpectedFunctionSent, \ | 594 T(UnexpectedFunctionSent, \ |
595 "function.sent expression is not allowed outside a generator") \ | 595 "function.sent expression is not allowed outside a generator") \ |
596 T(UnexpectedInsideTailCall, "Unexpected expression inside tail call") \ | |
597 T(UnexpectedReserved, "Unexpected reserved word") \ | 596 T(UnexpectedReserved, "Unexpected reserved word") \ |
598 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ | 597 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ |
599 T(UnexpectedSuper, "'super' keyword unexpected here") \ | 598 T(UnexpectedSuper, "'super' keyword unexpected here") \ |
600 T(UnexpectedSloppyTailCall, \ | |
601 "Tail call expressions are not allowed in non-strict mode") \ | |
602 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ | 599 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ |
603 T(UnexpectedTailCall, "Tail call expression is not allowed here") \ | |
604 T(UnexpectedTailCallInCatchBlock, \ | |
605 "Tail call expression in catch block when finally block is also present") \ | |
606 T(UnexpectedTailCallInForInOf, "Tail call expression in for-in/of body") \ | |
607 T(UnexpectedTailCallInTryBlock, "Tail call expression in try block") \ | |
608 T(UnexpectedTailCallOfEval, "Tail call of a direct eval is not allowed") \ | |
609 T(UnexpectedTemplateString, "Unexpected template string") \ | 600 T(UnexpectedTemplateString, "Unexpected template string") \ |
610 T(UnexpectedToken, "Unexpected token %") \ | 601 T(UnexpectedToken, "Unexpected token %") \ |
611 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ | 602 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ |
612 T(UnexpectedTokenNumber, "Unexpected number") \ | 603 T(UnexpectedTokenNumber, "Unexpected number") \ |
613 T(UnexpectedTokenString, "Unexpected string") \ | 604 T(UnexpectedTokenString, "Unexpected string") \ |
614 T(UnexpectedTokenRegExp, "Unexpected regular expression") \ | 605 T(UnexpectedTokenRegExp, "Unexpected regular expression") \ |
615 T(UnknownLabel, "Undefined label '%'") \ | 606 T(UnknownLabel, "Undefined label '%'") \ |
616 T(UnresolvableExport, "Module does not provide an export named '%'") \ | 607 T(UnresolvableExport, "Module does not provide an export named '%'") \ |
617 T(UnterminatedArgList, "missing ) after argument list") \ | 608 T(UnterminatedArgList, "missing ) after argument list") \ |
618 T(UnterminatedRegExp, "Invalid regular expression: missing /") \ | 609 T(UnterminatedRegExp, "Invalid regular expression: missing /") \ |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 681 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
691 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, | 682 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, |
692 Handle<Object> data); | 683 Handle<Object> data); |
693 }; | 684 }; |
694 | 685 |
695 | 686 |
696 } // namespace internal | 687 } // namespace internal |
697 } // namespace v8 | 688 } // namespace v8 |
698 | 689 |
699 #endif // V8_MESSAGES_H_ | 690 #endif // V8_MESSAGES_H_ |
OLD | NEW |