| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 T(ObserveTypeNonString, \ | 174 T(ObserveTypeNonString, \ |
| 175 "Invalid changeRecord with non-string 'type' property") \ | 175 "Invalid changeRecord with non-string 'type' property") \ |
| 176 T(OrdinaryFunctionCalledAsConstructor, \ | 176 T(OrdinaryFunctionCalledAsConstructor, \ |
| 177 "Function object that's not a constructor was created with new") \ | 177 "Function object that's not a constructor was created with new") \ |
| 178 T(PromiseCyclic, "Chaining cycle detected for promise %") \ | 178 T(PromiseCyclic, "Chaining cycle detected for promise %") \ |
| 179 T(PropertyDescObject, "Property description must be an object: %") \ | 179 T(PropertyDescObject, "Property description must be an object: %") \ |
| 180 T(PropertyNotFunction, "Property '%' of object % is not a function") \ | 180 T(PropertyNotFunction, "Property '%' of object % is not a function") \ |
| 181 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ | 181 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ |
| 182 T(PrototypeParentNotAnObject, \ | 182 T(PrototypeParentNotAnObject, \ |
| 183 "Class extends value does not have valid prototype property %") \ | 183 "Class extends value does not have valid prototype property %") \ |
| 184 T(ProxyHandlerDeleteFailed, \ | 184 T(ProxyDeletePropertyViolatesInvariant, \ |
| 185 "Proxy handler % did not return a boolean value from 'delete' trap") \ | 185 "Trap 'deleteProperty' returned true but property '%' is not configurable" \ |
| 186 " in the proxy target") \ |
| 186 T(ProxyHandlerNonObject, "Cannot create proxy with non-object as handler") \ | 187 T(ProxyHandlerNonObject, "Cannot create proxy with non-object as handler") \ |
| 187 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ | 188 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ |
| 188 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ | 189 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ |
| 189 T(ProxyHandlerTrapMustBeCallable, \ | 190 T(ProxyHandlerTrapMustBeCallable, \ |
| 190 "Proxy handler %0 has non-callable '%' trap") \ | 191 "Proxy handler %0 has non-callable '%' trap") \ |
| 191 T(ProxyIsExtensibleViolatesInvariant, \ | 192 T(ProxyIsExtensibleViolatesInvariant, \ |
| 192 "Result of trap 'isExtensible' is inconsistent with proxy's target") \ | 193 "Result of trap 'isExtensible' is inconsistent with proxy's target") \ |
| 193 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \ | 194 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \ |
| 194 T(ProxyPreventExtensionsViolatesInvariant, \ | 195 T(ProxyPreventExtensionsViolatesInvariant, \ |
| 195 "Trap 'preventExtensions' returned true but the proxy's target is " \ | 196 "Trap 'preventExtensions' returned true but the proxy's target is " \ |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 510 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
| 510 Isolate* isolate, LookupIterator* property_lookup, | 511 Isolate* isolate, LookupIterator* property_lookup, |
| 511 Handle<String> default_value); | 512 Handle<String> default_value); |
| 512 | 513 |
| 513 List<Handle<JSObject> > visited_; | 514 List<Handle<JSObject> > visited_; |
| 514 }; | 515 }; |
| 515 } // namespace internal | 516 } // namespace internal |
| 516 } // namespace v8 | 517 } // namespace v8 |
| 517 | 518 |
| 518 #endif // V8_MESSAGES_H_ | 519 #endif // V8_MESSAGES_H_ |
| OLD | NEW |