| 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 %") \ |
| 421 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ | 422 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ |
| 422 T(ReinitializeIntl, "Trying to re-initialize % object.") \ | 423 T(ReinitializeIntl, "Trying to re-initialize % object.") \ |
| 423 T(ResolvedOptionsCalledOnNonObject, \ | 424 T(ResolvedOptionsCalledOnNonObject, \ |
| 424 "resolvedOptions method called on a non-object or on a object that is " \ | 425 "resolvedOptions method called on a non-object or on a object that is " \ |
| 425 "not Intl.%.") \ | 426 "not Intl.%.") \ |
| 426 T(ResolverNotAFunction, "Promise resolver % is not a function") \ | 427 T(ResolverNotAFunction, "Promise resolver % is not a function") \ |
| 427 T(RestrictedFunctionProperties, \ | 428 T(RestrictedFunctionProperties, \ |
| 428 "'caller' and 'arguments' are restricted function properties and cannot " \ | 429 "'caller' and 'arguments' are restricted function properties and cannot " \ |
| 429 "be accessed in this context.") \ | 430 "be accessed in this context.") \ |
| 430 T(ReturnMethodNotCallable, "The iterator's 'return' method is not callable") \ | 431 T(ReturnMethodNotCallable, "The iterator's 'return' method is not callable") \ |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 676 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 676 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, | 677 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, |
| 677 Handle<Object> data); | 678 Handle<Object> data); |
| 678 }; | 679 }; |
| 679 | 680 |
| 680 | 681 |
| 681 } // namespace internal | 682 } // namespace internal |
| 682 } // namespace v8 | 683 } // namespace v8 |
| 683 | 684 |
| 684 #endif // V8_MESSAGES_H_ | 685 #endif // V8_MESSAGES_H_ |
| OLD | NEW |