| 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 T(NumberFormatRange, "% argument must be between 0 and 20") \ | 513 T(NumberFormatRange, "% argument must be between 0 and 20") \ |
| 514 T(PropertyValueOutOfRange, "% value is out of range.") \ | 514 T(PropertyValueOutOfRange, "% value is out of range.") \ |
| 515 T(StackOverflow, "Maximum call stack size exceeded") \ | 515 T(StackOverflow, "Maximum call stack size exceeded") \ |
| 516 T(ToPrecisionFormatRange, "toPrecision() argument must be between 1 and 21") \ | 516 T(ToPrecisionFormatRange, "toPrecision() argument must be between 1 and 21") \ |
| 517 T(ToRadixFormatRange, "toString() radix argument must be between 2 and 36") \ | 517 T(ToRadixFormatRange, "toString() radix argument must be between 2 and 36") \ |
| 518 T(TypedArraySetNegativeOffset, "Start offset is negative") \ | 518 T(TypedArraySetNegativeOffset, "Start offset is negative") \ |
| 519 T(TypedArraySetSourceTooLarge, "Source is too large") \ | 519 T(TypedArraySetSourceTooLarge, "Source is too large") \ |
| 520 T(UnsupportedTimeZone, "Unsupported time zone specified %") \ | 520 T(UnsupportedTimeZone, "Unsupported time zone specified %") \ |
| 521 T(ValueOutOfRange, "Value % out of range for % options property %") \ | 521 T(ValueOutOfRange, "Value % out of range for % options property %") \ |
| 522 /* SyntaxError */ \ | 522 /* SyntaxError */ \ |
| 523 T(AmbiguousExport, "Multiple star exports provide name '%'") \ | 523 T(AmbiguousExport, \ |
| 524 "The requested module contains conflicting star exports for name '%'") \ |
| 524 T(BadGetterArity, "Getter must not have any formal parameters.") \ | 525 T(BadGetterArity, "Getter must not have any formal parameters.") \ |
| 525 T(BadSetterArity, "Setter must have exactly one formal parameter.") \ | 526 T(BadSetterArity, "Setter must have exactly one formal parameter.") \ |
| 526 T(ConstructorIsAccessor, "Class constructor may not be an accessor") \ | 527 T(ConstructorIsAccessor, "Class constructor may not be an accessor") \ |
| 527 T(ConstructorIsGenerator, "Class constructor may not be a generator") \ | 528 T(ConstructorIsGenerator, "Class constructor may not be a generator") \ |
| 528 T(ConstructorIsAsync, "Class constructor may not be an async method") \ | 529 T(ConstructorIsAsync, "Class constructor may not be an async method") \ |
| 529 T(DerivedConstructorReturn, \ | 530 T(DerivedConstructorReturn, \ |
| 530 "Derived constructors may only return object or undefined") \ | 531 "Derived constructors may only return object or undefined") \ |
| 531 T(DuplicateConstructor, "A class may only have one constructor") \ | 532 T(DuplicateConstructor, "A class may only have one constructor") \ |
| 532 T(DuplicateExport, "Duplicate export of '%'") \ | 533 T(DuplicateExport, "Duplicate export of '%'") \ |
| 533 T(DuplicateProto, \ | 534 T(DuplicateProto, \ |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ | 619 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ |
| 619 T(UnexpectedSuper, "'super' keyword unexpected here") \ | 620 T(UnexpectedSuper, "'super' keyword unexpected here") \ |
| 620 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ | 621 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ |
| 621 T(UnexpectedTemplateString, "Unexpected template string") \ | 622 T(UnexpectedTemplateString, "Unexpected template string") \ |
| 622 T(UnexpectedToken, "Unexpected token %") \ | 623 T(UnexpectedToken, "Unexpected token %") \ |
| 623 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ | 624 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ |
| 624 T(UnexpectedTokenNumber, "Unexpected number") \ | 625 T(UnexpectedTokenNumber, "Unexpected number") \ |
| 625 T(UnexpectedTokenString, "Unexpected string") \ | 626 T(UnexpectedTokenString, "Unexpected string") \ |
| 626 T(UnexpectedTokenRegExp, "Unexpected regular expression") \ | 627 T(UnexpectedTokenRegExp, "Unexpected regular expression") \ |
| 627 T(UnknownLabel, "Undefined label '%'") \ | 628 T(UnknownLabel, "Undefined label '%'") \ |
| 628 T(UnresolvableExport, "Module does not provide an export named '%'") \ | 629 T(UnresolvableExport, \ |
| 630 "The requested module does not provide an export named '%'") \ |
| 629 T(UnterminatedArgList, "missing ) after argument list") \ | 631 T(UnterminatedArgList, "missing ) after argument list") \ |
| 630 T(UnterminatedRegExp, "Invalid regular expression: missing /") \ | 632 T(UnterminatedRegExp, "Invalid regular expression: missing /") \ |
| 631 T(UnterminatedTemplate, "Unterminated template literal") \ | 633 T(UnterminatedTemplate, "Unterminated template literal") \ |
| 632 T(UnterminatedTemplateExpr, "Missing } in template expression") \ | 634 T(UnterminatedTemplateExpr, "Missing } in template expression") \ |
| 633 T(FoundNonCallableHasInstance, "Found non-callable @@hasInstance") \ | 635 T(FoundNonCallableHasInstance, "Found non-callable @@hasInstance") \ |
| 634 T(InvalidHexEscapeSequence, "Invalid hexadecimal escape sequence") \ | 636 T(InvalidHexEscapeSequence, "Invalid hexadecimal escape sequence") \ |
| 635 T(InvalidUnicodeEscapeSequence, "Invalid Unicode escape sequence") \ | 637 T(InvalidUnicodeEscapeSequence, "Invalid Unicode escape sequence") \ |
| 636 T(UndefinedUnicodeCodePoint, "Undefined Unicode code-point") \ | 638 T(UndefinedUnicodeCodePoint, "Undefined Unicode code-point") \ |
| 637 T(YieldInParameter, "Yield expression not allowed in formal parameter") \ | 639 T(YieldInParameter, "Yield expression not allowed in formal parameter") \ |
| 638 /* EvalError */ \ | 640 /* EvalError */ \ |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 704 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 703 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, | 705 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, |
| 704 Handle<Object> data); | 706 Handle<Object> data); |
| 705 }; | 707 }; |
| 706 | 708 |
| 707 | 709 |
| 708 } // namespace internal | 710 } // namespace internal |
| 709 } // namespace v8 | 711 } // namespace v8 |
| 710 | 712 |
| 711 #endif // V8_MESSAGES_H_ | 713 #endif // V8_MESSAGES_H_ |
| OLD | NEW |