| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 T(PrototypeParentNotAnObject, \ | 183 T(PrototypeParentNotAnObject, \ |
| 184 "Class extends value does not have valid prototype property %") \ | 184 "Class extends value does not have valid prototype property %") \ |
| 185 T(ProxyDeletePropertyViolatesInvariant, \ | 185 T(ProxyDeletePropertyViolatesInvariant, \ |
| 186 "Trap 'deleteProperty' returned true but property '%' is not configurable" \ | 186 "Trap 'deleteProperty' returned true but property '%' is not configurable" \ |
| 187 " in the proxy target") \ | 187 " in the proxy target") \ |
| 188 T(ProxyHandlerNonObject, "Cannot create proxy with non-object as handler") \ | 188 T(ProxyHandlerNonObject, "Cannot create proxy with non-object as handler") \ |
| 189 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ | 189 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ |
| 190 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ | 190 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ |
| 191 T(ProxyHandlerTrapMustBeCallable, \ | 191 T(ProxyHandlerTrapMustBeCallable, \ |
| 192 "Proxy handler %0 has non-callable '%' trap") \ | 192 "Proxy handler %0 has non-callable '%' trap") \ |
| 193 T(ProxyIsExtensibleViolatesInvariant, \ | |
| 194 "Result of trap 'isExtensible' is inconsistent with proxy's target") \ | |
| 195 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \ | 193 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \ |
| 196 T(ProxyPreventExtensionsViolatesInvariant, \ | 194 T(ProxyPreventExtensionsViolatesInvariant, \ |
| 197 "Trap 'preventExtensions' returned true but the proxy's target is " \ | 195 "Trap 'preventExtensions' returned true but the proxy's target is " \ |
| 198 "extensible") \ | 196 "extensible") \ |
| 199 T(ProxyPropNotConfigurable, \ | 197 T(ProxyPropNotConfigurable, \ |
| 200 "Proxy handler % returned non-configurable descriptor for property '%' " \ | 198 "Proxy handler % returned non-configurable descriptor for property '%' " \ |
| 201 "from '%' trap") \ | 199 "from '%' trap") \ |
| 202 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \ | 200 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \ |
| 203 T(ProxyHandlerOrTargetRevoked, \ | 201 T(ProxyHandlerOrTargetRevoked, \ |
| 204 "Cannot create proxy with a revoked proxy as handler or target") \ | 202 "Cannot create proxy with a revoked proxy as handler or target") \ |
| 205 T(ProxyRevoked, "Cannot perform '%' on a proxy that has been revoked") \ | 203 T(ProxyRevoked, "Cannot perform '%' on a proxy that has been revoked") \ |
| 206 T(ProxyTargetNotExtensible, "Proxy target is not extensible") \ | 204 T(ProxyTargetNotExtensible, "Proxy target is not extensible") \ |
| 207 T(ProxyTargetNonObject, "Proxy target is non-object") \ | 205 T(ProxyTargetNonObject, "Proxy target is non-object") \ |
| 208 T(ProxyTargetPropNotConfigurable, \ | 206 T(ProxyTargetPropNotConfigurable, \ |
| 209 "Proxy target property '%' is not configurable") \ | 207 "Proxy target property '%' is not configurable") \ |
| 210 T(ProxyTrapFunctionExpected, \ | 208 T(ProxyTrapFunctionExpected, \ |
| 211 "Proxy.createFunction called with non-function for '%' trap") \ | 209 "Proxy.createFunction called with non-function for '%' trap") \ |
| 212 T(ProxyTrapResultMustInclude, "Trap result must include %.") \ | 210 T(ProxyTrapResultMustInclude, "Trap result must include %.") \ |
| 211 T(ProxyTrapViolatesInvariant, \ |
| 212 "Result of trap '%' is inconsistent with proxy's target") \ |
| 213 T(RedefineDisallowed, "Cannot redefine property: %") \ | 213 T(RedefineDisallowed, "Cannot redefine property: %") \ |
| 214 T(RedefineExternalArray, \ | 214 T(RedefineExternalArray, \ |
| 215 "Cannot redefine a property of an object with external array elements") \ | 215 "Cannot redefine a property of an object with external array elements") \ |
| 216 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ | 216 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ |
| 217 T(RegExpFlags, \ | 217 T(RegExpFlags, \ |
| 218 "Cannot supply flags when constructing one RegExp from another") \ | 218 "Cannot supply flags when constructing one RegExp from another") \ |
| 219 T(RegExpNonObject, "% getter called on non-object %") \ | 219 T(RegExpNonObject, "% getter called on non-object %") \ |
| 220 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ | 220 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ |
| 221 T(ReinitializeIntl, "Trying to re-initialize % object.") \ | 221 T(ReinitializeIntl, "Trying to re-initialize % object.") \ |
| 222 T(ResolvedOptionsCalledOnNonObject, \ | 222 T(ResolvedOptionsCalledOnNonObject, \ |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 513 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
| 514 Isolate* isolate, LookupIterator* property_lookup, | 514 Isolate* isolate, LookupIterator* property_lookup, |
| 515 Handle<String> default_value); | 515 Handle<String> default_value); |
| 516 | 516 |
| 517 List<Handle<JSObject> > visited_; | 517 List<Handle<JSObject> > visited_; |
| 518 }; | 518 }; |
| 519 } // namespace internal | 519 } // namespace internal |
| 520 } // namespace v8 | 520 } // namespace v8 |
| 521 | 521 |
| 522 #endif // V8_MESSAGES_H_ | 522 #endif // V8_MESSAGES_H_ |
| OLD | NEW |