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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 T(OrdinaryFunctionCalledAsConstructor, \ | 175 T(OrdinaryFunctionCalledAsConstructor, \ |
176 "Function object that's not a constructor was created with new") \ | 176 "Function object that's not a constructor was created with new") \ |
177 T(PromiseCyclic, "Chaining cycle detected for promise %") \ | 177 T(PromiseCyclic, "Chaining cycle detected for promise %") \ |
178 T(PropertyDescObject, "Property description must be an object: %") \ | 178 T(PropertyDescObject, "Property description must be an object: %") \ |
179 T(PropertyNotFunction, "Property '%' of object % is not a function") \ | 179 T(PropertyNotFunction, "Property '%' of object % is not a function") \ |
180 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ | 180 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ |
181 T(PrototypeParentNotAnObject, \ | 181 T(PrototypeParentNotAnObject, \ |
182 "Class extends value does not have valid prototype property %") \ | 182 "Class extends value does not have valid prototype property %") \ |
183 T(ProxyHandlerDeleteFailed, \ | 183 T(ProxyHandlerDeleteFailed, \ |
184 "Proxy handler % did not return a boolean value from 'delete' trap") \ | 184 "Proxy handler % did not return a boolean value from 'delete' trap") \ |
185 T(ProxyHandlerNonObject, "Proxy.% called with non-object as handler") \ | 185 T(ProxyHandlerNonObject, "Proxy.create called with non-object as handler") \ |
186 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ | 186 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ |
187 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ | 187 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ |
188 T(ProxyHandlerTrapMustBeCallable, \ | 188 T(ProxyHandlerTrapMustBeCallable, \ |
189 "Proxy handler %0 has non-callable '%' trap") \ | 189 "Proxy handler %0 has non-callable '%' trap") \ |
190 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \ | 190 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \ |
191 T(ProxyProtoNonObject, "Proxy.create called with no-object as prototype") \ | |
192 T(ProxyPropNotConfigurable, \ | 191 T(ProxyPropNotConfigurable, \ |
193 "Proxy handler % returned non-configurable descriptor for property '%' " \ | 192 "Proxy handler % returned non-configurable descriptor for property '%' " \ |
194 "from '%' trap") \ | 193 "from '%' trap") \ |
195 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \ | 194 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \ |
| 195 T(ProxyTargetNonObject, "Proxy.% called with non-object as target") \ |
196 T(ProxyTrapFunctionExpected, \ | 196 T(ProxyTrapFunctionExpected, \ |
197 "Proxy.createFunction called with non-function for '%' trap") \ | 197 "Proxy.createFunction called with non-function for '%' trap") \ |
198 T(RedefineDisallowed, "Cannot redefine property: %") \ | 198 T(RedefineDisallowed, "Cannot redefine property: %") \ |
199 T(RedefineExternalArray, \ | 199 T(RedefineExternalArray, \ |
200 "Cannot redefine a property of an object with external array elements") \ | 200 "Cannot redefine a property of an object with external array elements") \ |
201 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ | 201 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ |
202 T(RegExpFlags, \ | 202 T(RegExpFlags, \ |
203 "Cannot supply flags when constructing one RegExp from another") \ | 203 "Cannot supply flags when constructing one RegExp from another") \ |
204 T(RegExpNonObject, "% getter called on non-object %") \ | 204 T(RegExpNonObject, "% getter called on non-object %") \ |
205 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ | 205 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 498 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
499 Isolate* isolate, LookupIterator* property_lookup, | 499 Isolate* isolate, LookupIterator* property_lookup, |
500 Handle<String> default_value); | 500 Handle<String> default_value); |
501 | 501 |
502 List<Handle<JSObject> > visited_; | 502 List<Handle<JSObject> > visited_; |
503 }; | 503 }; |
504 } // namespace internal | 504 } // namespace internal |
505 } // namespace v8 | 505 } // namespace v8 |
506 | 506 |
507 #endif // V8_MESSAGES_H_ | 507 #endif // V8_MESSAGES_H_ |
OLD | NEW |