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