| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 T(ConstructorNotFunction, "Constructor % requires 'new'") \ | 254 T(ConstructorNotFunction, "Constructor % requires 'new'") \ |
| 255 T(ConstructorNotReceiver, "The .constructor property is not an object") \ | 255 T(ConstructorNotReceiver, "The .constructor property is not an object") \ |
| 256 T(CurrencyCode, "Currency code is required with currency style.") \ | 256 T(CurrencyCode, "Currency code is required with currency style.") \ |
| 257 T(DataViewNotArrayBuffer, \ | 257 T(DataViewNotArrayBuffer, \ |
| 258 "First argument to DataView constructor must be an ArrayBuffer") \ | 258 "First argument to DataView constructor must be an ArrayBuffer") \ |
| 259 T(DateType, "this is not a Date object.") \ | 259 T(DateType, "this is not a Date object.") \ |
| 260 T(DebuggerFrame, "Debugger: Invalid frame index.") \ | 260 T(DebuggerFrame, "Debugger: Invalid frame index.") \ |
| 261 T(DebuggerType, "Debugger: Parameters have wrong types.") \ | 261 T(DebuggerType, "Debugger: Parameters have wrong types.") \ |
| 262 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \ | 262 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \ |
| 263 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ | 263 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ |
| 264 T(DefineDisallowedWithNonDataDescriptor, \ |
| 265 "Cannot define property '%', descriptor is not a data descriptor.") \ |
| 264 T(DetachedOperation, "Cannot perform % on a detached ArrayBuffer") \ | 266 T(DetachedOperation, "Cannot perform % on a detached ArrayBuffer") \ |
| 265 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ | 267 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ |
| 266 T(ExtendsValueNotConstructor, \ | 268 T(ExtendsValueNotConstructor, \ |
| 267 "Class extends value % is not a constructor or null") \ | 269 "Class extends value % is not a constructor or null") \ |
| 268 T(FirstArgumentNotRegExp, \ | 270 T(FirstArgumentNotRegExp, \ |
| 269 "First argument to % must not be a regular expression") \ | 271 "First argument to % must not be a regular expression") \ |
| 270 T(FunctionBind, "Bind must be called on a function") \ | 272 T(FunctionBind, "Bind must be called on a function") \ |
| 271 T(GeneratorRunning, "Generator is already running") \ | 273 T(GeneratorRunning, "Generator is already running") \ |
| 272 T(IllegalInvocation, "Illegal invocation") \ | 274 T(IllegalInvocation, "Illegal invocation") \ |
| 273 T(ImmutablePrototypeSet, \ | 275 T(ImmutablePrototypeSet, \ |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 689 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 688 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, | 690 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, |
| 689 Handle<Object> data); | 691 Handle<Object> data); |
| 690 }; | 692 }; |
| 691 | 693 |
| 692 | 694 |
| 693 } // namespace internal | 695 } // namespace internal |
| 694 } // namespace v8 | 696 } // namespace v8 |
| 695 | 697 |
| 696 #endif // V8_MESSAGES_H_ | 698 #endif // V8_MESSAGES_H_ |
| OLD | NEW |