| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 T(ConstructorNotFunction, "Constructor % requires 'new'") \ | 289 T(ConstructorNotFunction, "Constructor % requires 'new'") \ |
| 290 T(ConstructorNotReceiver, "The .constructor property is not an object") \ | 290 T(ConstructorNotReceiver, "The .constructor property is not an object") \ |
| 291 T(CurrencyCode, "Currency code is required with currency style.") \ | 291 T(CurrencyCode, "Currency code is required with currency style.") \ |
| 292 T(CyclicModuleDependency, "Detected cycle while resolving name '%'") \ | 292 T(CyclicModuleDependency, "Detected cycle while resolving name '%'") \ |
| 293 T(DataViewNotArrayBuffer, \ | 293 T(DataViewNotArrayBuffer, \ |
| 294 "First argument to DataView constructor must be an ArrayBuffer") \ | 294 "First argument to DataView constructor must be an ArrayBuffer") \ |
| 295 T(DateType, "this is not a Date object.") \ | 295 T(DateType, "this is not a Date object.") \ |
| 296 T(DebuggerFrame, "Debugger: Invalid frame index.") \ | 296 T(DebuggerFrame, "Debugger: Invalid frame index.") \ |
| 297 T(DebuggerType, "Debugger: Parameters have wrong types.") \ | 297 T(DebuggerType, "Debugger: Parameters have wrong types.") \ |
| 298 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \ | 298 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \ |
| 299 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ | 299 T(DefineDisallowed, "Cannot define property %, object is not extensible") \ |
| 300 T(DetachedOperation, "Cannot perform % on a detached ArrayBuffer") \ | 300 T(DetachedOperation, "Cannot perform % on a detached ArrayBuffer") \ |
| 301 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ | 301 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ |
| 302 T(ExtendsValueNotConstructor, \ | 302 T(ExtendsValueNotConstructor, \ |
| 303 "Class extends value % is not a constructor or null") \ | 303 "Class extends value % is not a constructor or null") \ |
| 304 T(FirstArgumentNotRegExp, \ | 304 T(FirstArgumentNotRegExp, \ |
| 305 "First argument to % must not be a regular expression") \ | 305 "First argument to % must not be a regular expression") \ |
| 306 T(FunctionBind, "Bind must be called on a function") \ | 306 T(FunctionBind, "Bind must be called on a function") \ |
| 307 T(GeneratorRunning, "Generator is already running") \ | 307 T(GeneratorRunning, "Generator is already running") \ |
| 308 T(IllegalInvocation, "Illegal invocation") \ | 308 T(IllegalInvocation, "Illegal invocation") \ |
| 309 T(ImmutablePrototypeSet, \ | 309 T(ImmutablePrototypeSet, \ |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 T(NotPropertyName, "% is not a valid property name") \ | 345 T(NotPropertyName, "% is not a valid property name") \ |
| 346 T(NotTypedArray, "this is not a typed array.") \ | 346 T(NotTypedArray, "this is not a typed array.") \ |
| 347 T(NotSuperConstructor, "Super constructor % of % is not a constructor") \ | 347 T(NotSuperConstructor, "Super constructor % of % is not a constructor") \ |
| 348 T(NotSuperConstructorAnonymousClass, \ | 348 T(NotSuperConstructorAnonymousClass, \ |
| 349 "Super constructor % of anonymous class is not a constructor") \ | 349 "Super constructor % of anonymous class is not a constructor") \ |
| 350 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \ | 350 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \ |
| 351 T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \ | 351 T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \ |
| 352 T(ObjectGetterExpectingFunction, \ | 352 T(ObjectGetterExpectingFunction, \ |
| 353 "Object.prototype.__defineGetter__: Expecting function") \ | 353 "Object.prototype.__defineGetter__: Expecting function") \ |
| 354 T(ObjectGetterCallable, "Getter must be a function: %") \ | 354 T(ObjectGetterCallable, "Getter must be a function: %") \ |
| 355 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ | 355 T(ObjectNotExtensible, "Cannot add property %, object is not extensible") \ |
| 356 T(ObjectSetterExpectingFunction, \ | 356 T(ObjectSetterExpectingFunction, \ |
| 357 "Object.prototype.__defineSetter__: Expecting function") \ | 357 "Object.prototype.__defineSetter__: Expecting function") \ |
| 358 T(ObjectSetterCallable, "Setter must be a function: %") \ | 358 T(ObjectSetterCallable, "Setter must be a function: %") \ |
| 359 T(OrdinaryFunctionCalledAsConstructor, \ | 359 T(OrdinaryFunctionCalledAsConstructor, \ |
| 360 "Function object that's not a constructor was created with new") \ | 360 "Function object that's not a constructor was created with new") \ |
| 361 T(PromiseCyclic, "Chaining cycle detected for promise %") \ | 361 T(PromiseCyclic, "Chaining cycle detected for promise %") \ |
| 362 T(PromiseExecutorAlreadyInvoked, \ | 362 T(PromiseExecutorAlreadyInvoked, \ |
| 363 "Promise executor has already been invoked with non-undefined arguments") \ | 363 "Promise executor has already been invoked with non-undefined arguments") \ |
| 364 T(PromiseNonCallable, "Promise resolve or reject function is not callable") \ | 364 T(PromiseNonCallable, "Promise resolve or reject function is not callable") \ |
| 365 T(PropertyDescObject, "Property description must be an object: %") \ | 365 T(PropertyDescObject, "Property description must be an object: %") \ |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 const MessageLocation* loc, | 734 const MessageLocation* loc, |
| 735 Handle<Object> message_obj, | 735 Handle<Object> message_obj, |
| 736 v8::Local<v8::Value> api_exception_obj); | 736 v8::Local<v8::Value> api_exception_obj); |
| 737 }; | 737 }; |
| 738 | 738 |
| 739 | 739 |
| 740 } // namespace internal | 740 } // namespace internal |
| 741 } // namespace v8 | 741 } // namespace v8 |
| 742 | 742 |
| 743 #endif // V8_MESSAGES_H_ | 743 #endif // V8_MESSAGES_H_ |
| OLD | NEW |