| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 T(NotGeneric, "% is not generic") \ | 149 T(NotGeneric, "% is not generic") \ |
| 150 T(NotIterable, "% is not iterable") \ | 150 T(NotIterable, "% is not iterable") \ |
| 151 T(NotTypedArray, "this is not a typed array.") \ | 151 T(NotTypedArray, "this is not a typed array.") \ |
| 152 T(NotSharedTypedArray, "% is not a shared typed array.") \ | 152 T(NotSharedTypedArray, "% is not a shared typed array.") \ |
| 153 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \ | 153 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \ |
| 154 T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \ | 154 T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \ |
| 155 T(ObjectGetterExpectingFunction, \ | 155 T(ObjectGetterExpectingFunction, \ |
| 156 "Object.prototype.__defineGetter__: Expecting function") \ | 156 "Object.prototype.__defineGetter__: Expecting function") \ |
| 157 T(ObjectGetterCallable, "Getter must be a function: %") \ | 157 T(ObjectGetterCallable, "Getter must be a function: %") \ |
| 158 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ | 158 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ |
| 159 T(ObjectSetPrototypeNotExtensible, \ |
| 160 "Can't set prototype, object is not extensible") \ |
| 159 T(ObjectSetterExpectingFunction, \ | 161 T(ObjectSetterExpectingFunction, \ |
| 160 "Object.prototype.__defineSetter__: Expecting function") \ | 162 "Object.prototype.__defineSetter__: Expecting function") \ |
| 161 T(ObjectSetterCallable, "Setter must be a function: %") \ | 163 T(ObjectSetterCallable, "Setter must be a function: %") \ |
| 162 T(ObserveCallbackFrozen, \ | 164 T(ObserveCallbackFrozen, \ |
| 163 "Object.observe cannot deliver to a frozen function object") \ | 165 "Object.observe cannot deliver to a frozen function object") \ |
| 164 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \ | 166 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \ |
| 165 T(ObserveAccessChecked, "% cannot be called on access-checked objects") \ | 167 T(ObserveAccessChecked, "% cannot be called on access-checked objects") \ |
| 166 T(ObserveInvalidAccept, \ | 168 T(ObserveInvalidAccept, \ |
| 167 "Third argument to Object.observe must be an array of strings.") \ | 169 "Third argument to Object.observe must be an array of strings.") \ |
| 168 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \ | 170 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \ |
| 169 T(ObserveNonObject, "Object.% cannot % non-object") \ | 171 T(ObserveNonObject, "Object.% cannot % non-object") \ |
| 170 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ | 172 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ |
| 171 T(ObservePerformNonFunction, "Cannot perform non-function") \ | 173 T(ObservePerformNonFunction, "Cannot perform non-function") \ |
| 172 T(ObservePerformNonString, "Invalid non-string changeType") \ | 174 T(ObservePerformNonString, "Invalid non-string changeType") \ |
| 173 T(ObserveTypeNonString, \ | 175 T(ObserveTypeNonString, \ |
| 174 "Invalid changeRecord with non-string 'type' property") \ | 176 "Invalid changeRecord with non-string 'type' property") \ |
| 175 T(OrdinaryFunctionCalledAsConstructor, \ | 177 T(OrdinaryFunctionCalledAsConstructor, \ |
| 176 "Function object that's not a constructor was created with new") \ | 178 "Function object that's not a constructor was created with new") \ |
| 177 T(PromiseCyclic, "Chaining cycle detected for promise %") \ | 179 T(PromiseCyclic, "Chaining cycle detected for promise %") \ |
| 178 T(PropertyDescObject, "Property description must be an object: %") \ | 180 T(PropertyDescObject, "Property description must be an object: %") \ |
| 179 T(PropertyNotFunction, "Property '%' of object % is not a function") \ | 181 T(PropertyNotFunction, "Property '%' of object % is not a function") \ |
| 182 T(ProtoNotSet, "Could not set prototype '%' on '%'' ") \ |
| 180 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ | 183 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ |
| 181 T(PrototypeParentNotAnObject, \ | 184 T(PrototypeParentNotAnObject, \ |
| 182 "Class extends value does not have valid prototype property %") \ | 185 "Class extends value does not have valid prototype property %") \ |
| 183 T(ProxyHandlerDeleteFailed, \ | 186 T(ProxyHandlerDeleteFailed, \ |
| 184 "Proxy handler % did not return a boolean value from 'delete' trap") \ | 187 "Proxy handler % did not return a boolean value from 'delete' trap") \ |
| 185 T(ProxyHandlerNonObject, "Proxy.create called with non-object as handler") \ | 188 T(ProxyHandlerNonObject, "Proxy.create called with non-object as handler") \ |
| 186 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ | 189 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ |
| 187 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ | 190 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ |
| 188 T(ProxyHandlerTrapMustBeCallable, \ | 191 T(ProxyHandlerTrapMustBeCallable, \ |
| 189 "Proxy handler %0 has non-callable '%' trap") \ | 192 "Proxy handler %0 has non-callable '%' trap") \ |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 501 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
| 499 Isolate* isolate, LookupIterator* property_lookup, | 502 Isolate* isolate, LookupIterator* property_lookup, |
| 500 Handle<String> default_value); | 503 Handle<String> default_value); |
| 501 | 504 |
| 502 List<Handle<JSObject> > visited_; | 505 List<Handle<JSObject> > visited_; |
| 503 }; | 506 }; |
| 504 } // namespace internal | 507 } // namespace internal |
| 505 } // namespace v8 | 508 } // namespace v8 |
| 506 | 509 |
| 507 #endif // V8_MESSAGES_H_ | 510 #endif // V8_MESSAGES_H_ |
| OLD | NEW |