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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 T(NumberFormatRange, "% argument must be between 0 and 20") \ | 491 T(NumberFormatRange, "% argument must be between 0 and 20") \ |
492 T(PropertyValueOutOfRange, "% value is out of range.") \ | 492 T(PropertyValueOutOfRange, "% value is out of range.") \ |
493 T(StackOverflow, "Maximum call stack size exceeded") \ | 493 T(StackOverflow, "Maximum call stack size exceeded") \ |
494 T(ToPrecisionFormatRange, "toPrecision() argument must be between 1 and 21") \ | 494 T(ToPrecisionFormatRange, "toPrecision() argument must be between 1 and 21") \ |
495 T(ToRadixFormatRange, "toString() radix argument must be between 2 and 36") \ | 495 T(ToRadixFormatRange, "toString() radix argument must be between 2 and 36") \ |
496 T(TypedArraySetNegativeOffset, "Start offset is negative") \ | 496 T(TypedArraySetNegativeOffset, "Start offset is negative") \ |
497 T(TypedArraySetSourceTooLarge, "Source is too large") \ | 497 T(TypedArraySetSourceTooLarge, "Source is too large") \ |
498 T(UnsupportedTimeZone, "Unsupported time zone specified %") \ | 498 T(UnsupportedTimeZone, "Unsupported time zone specified %") \ |
499 T(ValueOutOfRange, "Value % out of range for % options property %") \ | 499 T(ValueOutOfRange, "Value % out of range for % options property %") \ |
500 /* SyntaxError */ \ | 500 /* SyntaxError */ \ |
| 501 T(AmbiguousExport, "Multiple star exports provide name '%'") \ |
501 T(BadGetterArity, "Getter must not have any formal parameters.") \ | 502 T(BadGetterArity, "Getter must not have any formal parameters.") \ |
502 T(BadSetterArity, "Setter must have exactly one formal parameter.") \ | 503 T(BadSetterArity, "Setter must have exactly one formal parameter.") \ |
503 T(ConstructorIsAccessor, "Class constructor may not be an accessor") \ | 504 T(ConstructorIsAccessor, "Class constructor may not be an accessor") \ |
504 T(ConstructorIsGenerator, "Class constructor may not be a generator") \ | 505 T(ConstructorIsGenerator, "Class constructor may not be a generator") \ |
505 T(ConstructorIsAsync, "Class constructor may not be an async method") \ | 506 T(ConstructorIsAsync, "Class constructor may not be an async method") \ |
506 T(DerivedConstructorReturn, \ | 507 T(DerivedConstructorReturn, \ |
507 "Derived constructors may only return object or undefined") \ | 508 "Derived constructors may only return object or undefined") \ |
508 T(DuplicateConstructor, "A class may only have one constructor") \ | 509 T(DuplicateConstructor, "A class may only have one constructor") \ |
509 T(DuplicateExport, "Duplicate export of '%'") \ | 510 T(DuplicateExport, "Duplicate export of '%'") \ |
510 T(DuplicateProto, \ | 511 T(DuplicateProto, \ |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 689 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
689 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, | 690 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, |
690 Handle<Object> data); | 691 Handle<Object> data); |
691 }; | 692 }; |
692 | 693 |
693 | 694 |
694 } // namespace internal | 695 } // namespace internal |
695 } // namespace v8 | 696 } // namespace v8 |
696 | 697 |
697 #endif // V8_MESSAGES_H_ | 698 #endif // V8_MESSAGES_H_ |
OLD | NEW |