| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 T(DebuggerType, "Debugger: Parameters have wrong types.") \ | 110 T(DebuggerType, "Debugger: Parameters have wrong types.") \ |
| 111 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \ | 111 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \ |
| 112 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ | 112 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ |
| 113 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ | 113 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ |
| 114 T(ExtendsValueGenerator, \ | 114 T(ExtendsValueGenerator, \ |
| 115 "Class extends value % may not be a generator function") \ | 115 "Class extends value % may not be a generator function") \ |
| 116 T(ExtendsValueNotFunction, \ | 116 T(ExtendsValueNotFunction, \ |
| 117 "Class extends value % is not a function or null") \ | 117 "Class extends value % is not a function or null") \ |
| 118 T(FirstArgumentNotRegExp, \ | 118 T(FirstArgumentNotRegExp, \ |
| 119 "First argument to % must not be a regular expression") \ | 119 "First argument to % must not be a regular expression") \ |
| 120 T(FlagsGetterNonObject, \ | |
| 121 "RegExp.prototype.flags getter called on non-object %") \ | |
| 122 T(FunctionBind, "Bind must be called on a function") \ | 120 T(FunctionBind, "Bind must be called on a function") \ |
| 123 T(GeneratorRunning, "Generator is already running") \ | 121 T(GeneratorRunning, "Generator is already running") \ |
| 124 T(IllegalInvocation, "Illegal invocation") \ | 122 T(IllegalInvocation, "Illegal invocation") \ |
| 125 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ | 123 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ |
| 126 T(InstanceofFunctionExpected, \ | 124 T(InstanceofFunctionExpected, \ |
| 127 "Expecting a function in instanceof check, but got %") \ | 125 "Expecting a function in instanceof check, but got %") \ |
| 128 T(InstanceofNonobjectProto, \ | 126 T(InstanceofNonobjectProto, \ |
| 129 "Function has non-object prototype '%' in instanceof check") \ | 127 "Function has non-object prototype '%' in instanceof check") \ |
| 130 T(InvalidArgument, "invalid_argument") \ | 128 T(InvalidArgument, "invalid_argument") \ |
| 131 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ | 129 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 "from '%' trap") \ | 194 "from '%' trap") \ |
| 197 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \ | 195 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \ |
| 198 T(ProxyTrapFunctionExpected, \ | 196 T(ProxyTrapFunctionExpected, \ |
| 199 "Proxy.createFunction called with non-function for '%' trap") \ | 197 "Proxy.createFunction called with non-function for '%' trap") \ |
| 200 T(RedefineDisallowed, "Cannot redefine property: %") \ | 198 T(RedefineDisallowed, "Cannot redefine property: %") \ |
| 201 T(RedefineExternalArray, \ | 199 T(RedefineExternalArray, \ |
| 202 "Cannot redefine a property of an object with external array elements") \ | 200 "Cannot redefine a property of an object with external array elements") \ |
| 203 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ | 201 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ |
| 204 T(RegExpFlags, \ | 202 T(RegExpFlags, \ |
| 205 "Cannot supply flags when constructing one RegExp from another") \ | 203 "Cannot supply flags when constructing one RegExp from another") \ |
| 204 T(RegExpNonObject, "% getter called on non-object %") \ |
| 205 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ |
| 206 T(ReinitializeIntl, "Trying to re-initialize % object.") \ | 206 T(ReinitializeIntl, "Trying to re-initialize % object.") \ |
| 207 T(ResolvedOptionsCalledOnNonObject, \ | 207 T(ResolvedOptionsCalledOnNonObject, \ |
| 208 "resolvedOptions method called on a non-object or on a object that is " \ | 208 "resolvedOptions method called on a non-object or on a object that is " \ |
| 209 "not Intl.%.") \ | 209 "not Intl.%.") \ |
| 210 T(ResolverNotAFunction, "Promise resolver % is not a function") \ | 210 T(ResolverNotAFunction, "Promise resolver % is not a function") \ |
| 211 T(RestrictedFunctionProperties, \ | 211 T(RestrictedFunctionProperties, \ |
| 212 "'caller' and 'arguments' are restricted function properties and cannot " \ | 212 "'caller' and 'arguments' are restricted function properties and cannot " \ |
| 213 "be accessed in this context.") \ | 213 "be accessed in this context.") \ |
| 214 T(StaticPrototype, "Classes may not have static property named prototype") \ | 214 T(StaticPrototype, "Classes may not have static property named prototype") \ |
| 215 T(StrictCannotAssign, "Cannot assign to read only '% in strict mode") \ | 215 T(StrictCannotAssign, "Cannot assign to read only '% in strict mode") \ |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 498 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
| 499 Isolate* isolate, LookupIterator* property_lookup, | 499 Isolate* isolate, LookupIterator* property_lookup, |
| 500 Handle<String> default_value); | 500 Handle<String> default_value); |
| 501 | 501 |
| 502 List<Handle<JSObject> > visited_; | 502 List<Handle<JSObject> > visited_; |
| 503 }; | 503 }; |
| 504 } // namespace internal | 504 } // namespace internal |
| 505 } // namespace v8 | 505 } // namespace v8 |
| 506 | 506 |
| 507 #endif // V8_MESSAGES_H_ | 507 #endif // V8_MESSAGES_H_ |
| OLD | NEW |