| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(ProxyHandlerDeleteFailed, \ |
| 185 "Proxy handler % did not return a boolean value from 'delete' trap") \ | 185 "Proxy handler % did not return a boolean value from 'delete' trap") \ |
| 186 T(ProxyHandlerNonObject, "Proxy.create called with non-object as handler") \ | 186 T(ProxyHandlerNonObject, "Cannot create proxy with non-object as handler") \ |
| 187 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ | 187 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ |
| 188 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ | 188 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ |
| 189 T(ProxyHandlerTrapMustBeCallable, \ | 189 T(ProxyHandlerTrapMustBeCallable, \ |
| 190 "Proxy handler %0 has non-callable '%' trap") \ | 190 "Proxy handler %0 has non-callable '%' trap") \ |
| 191 T(ProxyIsExtensibleViolatesInvariant, \ |
| 192 "Result of trap 'isExtensible' is inconsistent with proxy's target") \ |
| 191 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \ | 193 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \ |
| 194 T(ProxyPreventExtensionsViolatesInvariant, \ |
| 195 "Trap 'preventExtensions' returned true but the proxy's target is " \ |
| 196 "extensible") \ |
| 192 T(ProxyPropNotConfigurable, \ | 197 T(ProxyPropNotConfigurable, \ |
| 193 "Proxy handler % returned non-configurable descriptor for property '%' " \ | 198 "Proxy handler % returned non-configurable descriptor for property '%' " \ |
| 194 "from '%' trap") \ | 199 "from '%' trap") \ |
| 195 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \ | 200 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \ |
| 201 T(ProxyRevoked, "Cannot perform '%' on a proxy that has been revoked") \ |
| 196 T(ProxyTargetNotExtensible, "Proxy target is not extensible") \ | 202 T(ProxyTargetNotExtensible, "Proxy target is not extensible") \ |
| 197 T(ProxyTargetNonObject, "Proxy.% called with non-object as target") \ | 203 T(ProxyTargetNonObject, "Proxy target is non-object") \ |
| 198 T(ProxyTargetPropNotConfigurable, \ | 204 T(ProxyTargetPropNotConfigurable, \ |
| 199 "Proxy target property '%' is not configurable") \ | 205 "Proxy target property '%' is not configurable") \ |
| 200 T(ProxyTrapFunctionExpected, \ | 206 T(ProxyTrapFunctionExpected, \ |
| 201 "Proxy.createFunction called with non-function for '%' trap") \ | 207 "Proxy.createFunction called with non-function for '%' trap") \ |
| 202 T(RedefineDisallowed, "Cannot redefine property: %") \ | 208 T(RedefineDisallowed, "Cannot redefine property: %") \ |
| 203 T(RedefineExternalArray, \ | 209 T(RedefineExternalArray, \ |
| 204 "Cannot redefine a property of an object with external array elements") \ | 210 "Cannot redefine a property of an object with external array elements") \ |
| 205 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ | 211 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ |
| 206 T(RegExpFlags, \ | 212 T(RegExpFlags, \ |
| 207 "Cannot supply flags when constructing one RegExp from another") \ | 213 "Cannot supply flags when constructing one RegExp from another") \ |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 509 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
| 504 Isolate* isolate, LookupIterator* property_lookup, | 510 Isolate* isolate, LookupIterator* property_lookup, |
| 505 Handle<String> default_value); | 511 Handle<String> default_value); |
| 506 | 512 |
| 507 List<Handle<JSObject> > visited_; | 513 List<Handle<JSObject> > visited_; |
| 508 }; | 514 }; |
| 509 } // namespace internal | 515 } // namespace internal |
| 510 } // namespace v8 | 516 } // namespace v8 |
| 511 | 517 |
| 512 #endif // V8_MESSAGES_H_ | 518 #endif // V8_MESSAGES_H_ |
| OLD | NEW |