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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 T(CurrencyCode, "Currency code is required with currency style.") \ | 113 T(CurrencyCode, "Currency code is required with currency style.") \ |
114 T(DataViewNotArrayBuffer, \ | 114 T(DataViewNotArrayBuffer, \ |
115 "First argument to DataView constructor must be an ArrayBuffer") \ | 115 "First argument to DataView constructor must be an ArrayBuffer") \ |
116 T(DateType, "this is not a Date object.") \ | 116 T(DateType, "this is not a Date object.") \ |
117 T(DebuggerFrame, "Debugger: Invalid frame index.") \ | 117 T(DebuggerFrame, "Debugger: Invalid frame index.") \ |
118 T(DebuggerType, "Debugger: Parameters have wrong types.") \ | 118 T(DebuggerType, "Debugger: Parameters have wrong types.") \ |
119 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \ | 119 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \ |
120 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ | 120 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ |
121 T(DetachedOperation, "Cannot perform % on a detached ArrayBuffer") \ | 121 T(DetachedOperation, "Cannot perform % on a detached ArrayBuffer") \ |
122 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ | 122 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ |
123 T(ExtendsValueGenerator, \ | 123 T(ExtendsValueNotConstructor, \ |
124 "Class extends value % may not be a generator function") \ | 124 "Class extends value % is not a constructor or null") \ |
125 T(ExtendsValueNotFunction, \ | |
126 "Class extends value % is not a function or null") \ | |
127 T(FirstArgumentNotRegExp, \ | 125 T(FirstArgumentNotRegExp, \ |
128 "First argument to % must not be a regular expression") \ | 126 "First argument to % must not be a regular expression") \ |
129 T(FunctionBind, "Bind must be called on a function") \ | 127 T(FunctionBind, "Bind must be called on a function") \ |
130 T(GeneratorRunning, "Generator is already running") \ | 128 T(GeneratorRunning, "Generator is already running") \ |
131 T(IllegalInvocation, "Illegal invocation") \ | 129 T(IllegalInvocation, "Illegal invocation") \ |
132 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ | 130 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ |
133 T(InstanceofNonobjectProto, \ | 131 T(InstanceofNonobjectProto, \ |
134 "Function has non-object prototype '%' in instanceof check") \ | 132 "Function has non-object prototype '%' in instanceof check") \ |
135 T(InvalidArgument, "invalid_argument") \ | 133 T(InvalidArgument, "invalid_argument") \ |
136 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ | 134 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 528 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
531 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 529 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
532 Handle<Object> data); | 530 Handle<Object> data); |
533 }; | 531 }; |
534 | 532 |
535 | 533 |
536 } // namespace internal | 534 } // namespace internal |
537 } // namespace v8 | 535 } // namespace v8 |
538 | 536 |
539 #endif // V8_MESSAGES_H_ | 537 #endif // V8_MESSAGES_H_ |
OLD | NEW |