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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 T(NonObjectPropertyLoad, "Cannot read property '%' of %") \ | 142 T(NonObjectPropertyLoad, "Cannot read property '%' of %") \ |
143 T(NonObjectPropertyStore, "Cannot set property '%' of %") \ | 143 T(NonObjectPropertyStore, "Cannot set property '%' of %") \ |
144 T(NoSetterInCallback, "Cannot set property % of % which has only a getter") \ | 144 T(NoSetterInCallback, "Cannot set property % of % which has only a getter") \ |
145 T(NotAnIterator, "% is not an iterator") \ | 145 T(NotAnIterator, "% is not an iterator") \ |
146 T(NotAPromise, "% is not a promise") \ | 146 T(NotAPromise, "% is not a promise") \ |
147 T(NotConstructor, "% is not a constructor") \ | 147 T(NotConstructor, "% is not a constructor") \ |
148 T(NotDateObject, "this is not a Date object.") \ | 148 T(NotDateObject, "this is not a Date object.") \ |
149 T(NotIntlObject, "% is not an i18n object.") \ | 149 T(NotIntlObject, "% is not an i18n object.") \ |
150 T(NotGeneric, "% is not generic") \ | 150 T(NotGeneric, "% is not generic") \ |
151 T(NotIterable, "% is not iterable") \ | 151 T(NotIterable, "% is not iterable") \ |
152 T(NotPropertyName, "% is not a valid property name") \ | |
153 T(NotTypedArray, "this is not a typed array.") \ | 152 T(NotTypedArray, "this is not a typed array.") \ |
154 T(NotSharedTypedArray, "% is not a shared typed array.") \ | 153 T(NotSharedTypedArray, "% is not a shared typed array.") \ |
155 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \ | 154 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \ |
156 T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \ | 155 T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \ |
157 T(ObjectGetterExpectingFunction, \ | 156 T(ObjectGetterExpectingFunction, \ |
158 "Object.prototype.__defineGetter__: Expecting function") \ | 157 "Object.prototype.__defineGetter__: Expecting function") \ |
159 T(ObjectGetterCallable, "Getter must be a function: %") \ | 158 T(ObjectGetterCallable, "Getter must be a function: %") \ |
160 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ | 159 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ |
161 T(ObjectSetterExpectingFunction, \ | 160 T(ObjectSetterExpectingFunction, \ |
162 "Object.prototype.__defineSetter__: Expecting function") \ | 161 "Object.prototype.__defineSetter__: Expecting function") \ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 "Proxy handler % returned non-configurable descriptor for property '%' " \ | 199 "Proxy handler % returned non-configurable descriptor for property '%' " \ |
201 "from '%' trap") \ | 200 "from '%' trap") \ |
202 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \ | 201 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \ |
203 T(ProxyRevoked, "Cannot perform '%' on a proxy that has been revoked") \ | 202 T(ProxyRevoked, "Cannot perform '%' on a proxy that has been revoked") \ |
204 T(ProxyTargetNotExtensible, "Proxy target is not extensible") \ | 203 T(ProxyTargetNotExtensible, "Proxy target is not extensible") \ |
205 T(ProxyTargetNonObject, "Proxy target is non-object") \ | 204 T(ProxyTargetNonObject, "Proxy target is non-object") \ |
206 T(ProxyTargetPropNotConfigurable, \ | 205 T(ProxyTargetPropNotConfigurable, \ |
207 "Proxy target property '%' is not configurable") \ | 206 "Proxy target property '%' is not configurable") \ |
208 T(ProxyTrapFunctionExpected, \ | 207 T(ProxyTrapFunctionExpected, \ |
209 "Proxy.createFunction called with non-function for '%' trap") \ | 208 "Proxy.createFunction called with non-function for '%' trap") \ |
210 T(ProxyTrapResultMustInclude, "Trap result must include %.") \ | |
211 T(RedefineDisallowed, "Cannot redefine property: %") \ | 209 T(RedefineDisallowed, "Cannot redefine property: %") \ |
212 T(RedefineExternalArray, \ | 210 T(RedefineExternalArray, \ |
213 "Cannot redefine a property of an object with external array elements") \ | 211 "Cannot redefine a property of an object with external array elements") \ |
214 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ | 212 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ |
215 T(RegExpFlags, \ | 213 T(RegExpFlags, \ |
216 "Cannot supply flags when constructing one RegExp from another") \ | 214 "Cannot supply flags when constructing one RegExp from another") \ |
217 T(RegExpNonObject, "% getter called on non-object %") \ | 215 T(RegExpNonObject, "% getter called on non-object %") \ |
218 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ | 216 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ |
219 T(ReinitializeIntl, "Trying to re-initialize % object.") \ | 217 T(ReinitializeIntl, "Trying to re-initialize % object.") \ |
220 T(ResolvedOptionsCalledOnNonObject, \ | 218 T(ResolvedOptionsCalledOnNonObject, \ |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 509 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
512 Isolate* isolate, LookupIterator* property_lookup, | 510 Isolate* isolate, LookupIterator* property_lookup, |
513 Handle<String> default_value); | 511 Handle<String> default_value); |
514 | 512 |
515 List<Handle<JSObject> > visited_; | 513 List<Handle<JSObject> > visited_; |
516 }; | 514 }; |
517 } // namespace internal | 515 } // namespace internal |
518 } // namespace v8 | 516 } // namespace v8 |
519 | 517 |
520 #endif // V8_MESSAGES_H_ | 518 #endif // V8_MESSAGES_H_ |
OLD | NEW |