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