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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 T(ObserveNonObject, "Object.% cannot % non-object") \ | 171 T(ObserveNonObject, "Object.% cannot % non-object") \ |
172 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ | 172 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ |
173 T(ObservePerformNonFunction, "Cannot perform non-function") \ | 173 T(ObservePerformNonFunction, "Cannot perform non-function") \ |
174 T(ObservePerformNonString, "Invalid non-string changeType") \ | 174 T(ObservePerformNonString, "Invalid non-string changeType") \ |
175 T(ObserveTypeNonString, \ | 175 T(ObserveTypeNonString, \ |
176 "Invalid changeRecord with non-string 'type' property") \ | 176 "Invalid changeRecord with non-string 'type' property") \ |
177 T(OrdinaryFunctionCalledAsConstructor, \ | 177 T(OrdinaryFunctionCalledAsConstructor, \ |
178 "Function object that's not a constructor was created with new") \ | 178 "Function object that's not a constructor was created with new") \ |
179 T(PromiseCyclic, "Chaining cycle detected for promise %") \ | 179 T(PromiseCyclic, "Chaining cycle detected for promise %") \ |
180 T(PropertyDescObject, "Property description must be an object: %") \ | 180 T(PropertyDescObject, "Property description must be an object: %") \ |
181 T(PropertyNotFunction, "Property '%' of object % is not a function") \ | 181 T(PropertyNotFunction, \ |
| 182 "'%' returned for property '%' of object '%' is not a function") \ |
182 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ | 183 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ |
183 T(PrototypeParentNotAnObject, \ | 184 T(PrototypeParentNotAnObject, \ |
184 "Class extends value does not have valid prototype property %") \ | 185 "Class extends value does not have valid prototype property %") \ |
185 T(ProxyDeletePropertyViolatesInvariant, \ | 186 T(ProxyDeletePropertyViolatesInvariant, \ |
186 "Trap 'deleteProperty' returned true but property '%' is not configurable" \ | 187 "Trap 'deleteProperty' returned true but property '%' is not configurable" \ |
187 " in the proxy target") \ | 188 " in the proxy target") \ |
188 T(ProxyHandlerNonObject, "Cannot create proxy with non-object as handler") \ | 189 T(ProxyHandlerNonObject, "Cannot create proxy with non-object as handler") \ |
189 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ | 190 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ |
190 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ | 191 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ |
191 T(ProxyHandlerTrapMustBeCallable, \ | 192 T(ProxyHandlerTrapMustBeCallable, \ |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 514 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
514 Isolate* isolate, LookupIterator* property_lookup, | 515 Isolate* isolate, LookupIterator* property_lookup, |
515 Handle<String> default_value); | 516 Handle<String> default_value); |
516 | 517 |
517 List<Handle<JSObject> > visited_; | 518 List<Handle<JSObject> > visited_; |
518 }; | 519 }; |
519 } // namespace internal | 520 } // namespace internal |
520 } // namespace v8 | 521 } // namespace v8 |
521 | 522 |
522 #endif // V8_MESSAGES_H_ | 523 #endif // V8_MESSAGES_H_ |
OLD | NEW |