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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 T(ProxyTrapReturnedFalsish, "'%' on proxy: trap returned falsish") \ | 411 T(ProxyTrapReturnedFalsish, "'%' on proxy: trap returned falsish") \ |
412 T(ProxyTrapReturnedFalsishFor, \ | 412 T(ProxyTrapReturnedFalsishFor, \ |
413 "'%' on proxy: trap returned falsish for property '%'") \ | 413 "'%' on proxy: trap returned falsish for property '%'") \ |
414 T(ReadGlobalReferenceThroughProxy, "Trying to access '%' through proxy") \ | 414 T(ReadGlobalReferenceThroughProxy, "Trying to access '%' through proxy") \ |
415 T(RedefineDisallowed, "Cannot redefine property: %") \ | 415 T(RedefineDisallowed, "Cannot redefine property: %") \ |
416 T(RedefineExternalArray, \ | 416 T(RedefineExternalArray, \ |
417 "Cannot redefine a property of an object with external array elements") \ | 417 "Cannot redefine a property of an object with external array elements") \ |
418 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ | 418 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ |
419 T(RegExpFlags, \ | 419 T(RegExpFlags, \ |
420 "Cannot supply flags when constructing one RegExp from another") \ | 420 "Cannot supply flags when constructing one RegExp from another") \ |
421 T(RegExpNonObject, "% getter called on non-object %") \ | |
422 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ | 421 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ |
423 T(ReinitializeIntl, "Trying to re-initialize % object.") \ | 422 T(ReinitializeIntl, "Trying to re-initialize % object.") \ |
424 T(ResolvedOptionsCalledOnNonObject, \ | 423 T(ResolvedOptionsCalledOnNonObject, \ |
425 "resolvedOptions method called on a non-object or on a object that is " \ | 424 "resolvedOptions method called on a non-object or on a object that is " \ |
426 "not Intl.%.") \ | 425 "not Intl.%.") \ |
427 T(ResolverNotAFunction, "Promise resolver % is not a function") \ | 426 T(ResolverNotAFunction, "Promise resolver % is not a function") \ |
428 T(RestrictedFunctionProperties, \ | 427 T(RestrictedFunctionProperties, \ |
429 "'caller' and 'arguments' are restricted function properties and cannot " \ | 428 "'caller' and 'arguments' are restricted function properties and cannot " \ |
430 "be accessed in this context.") \ | 429 "be accessed in this context.") \ |
431 T(ReturnMethodNotCallable, "The iterator's 'return' method is not callable") \ | 430 T(ReturnMethodNotCallable, "The iterator's 'return' method is not callable") \ |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 675 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
677 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, | 676 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, |
678 Handle<Object> data); | 677 Handle<Object> data); |
679 }; | 678 }; |
680 | 679 |
681 | 680 |
682 } // namespace internal | 681 } // namespace internal |
683 } // namespace v8 | 682 } // namespace v8 |
684 | 683 |
685 #endif // V8_MESSAGES_H_ | 684 #endif // V8_MESSAGES_H_ |
OLD | NEW |