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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \ | 173 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \ |
174 T(ObserveNonObject, "Object.% cannot % non-object") \ | 174 T(ObserveNonObject, "Object.% cannot % non-object") \ |
175 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ | 175 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ |
176 T(ObservePerformNonFunction, "Cannot perform non-function") \ | 176 T(ObservePerformNonFunction, "Cannot perform non-function") \ |
177 T(ObservePerformNonString, "Invalid non-string changeType") \ | 177 T(ObservePerformNonString, "Invalid non-string changeType") \ |
178 T(ObserveTypeNonString, \ | 178 T(ObserveTypeNonString, \ |
179 "Invalid changeRecord with non-string 'type' property") \ | 179 "Invalid changeRecord with non-string 'type' property") \ |
180 T(OrdinaryFunctionCalledAsConstructor, \ | 180 T(OrdinaryFunctionCalledAsConstructor, \ |
181 "Function object that's not a constructor was created with new") \ | 181 "Function object that's not a constructor was created with new") \ |
182 T(PromiseCyclic, "Chaining cycle detected for promise %") \ | 182 T(PromiseCyclic, "Chaining cycle detected for promise %") \ |
| 183 T(PromiseExecutorAlreadyInvoked, \ |
| 184 "Promise executor has already been invoked with non-undefined arguments") \ |
183 T(PropertyDescObject, "Property description must be an object: %") \ | 185 T(PropertyDescObject, "Property description must be an object: %") \ |
184 T(PropertyNotFunction, \ | 186 T(PropertyNotFunction, \ |
185 "'%' returned for property '%' of object '%' is not a function") \ | 187 "'%' returned for property '%' of object '%' is not a function") \ |
186 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ | 188 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ |
187 T(PrototypeParentNotAnObject, \ | 189 T(PrototypeParentNotAnObject, \ |
188 "Class extends value does not have valid prototype property %") \ | 190 "Class extends value does not have valid prototype property %") \ |
189 T(ProxyConstructNonObject, \ | 191 T(ProxyConstructNonObject, \ |
190 "'construct' on proxy: trap returned non-object ('%')") \ | 192 "'construct' on proxy: trap returned non-object ('%')") \ |
191 T(ProxyDefinePropertyNonConfigurable, \ | 193 T(ProxyDefinePropertyNonConfigurable, \ |
192 "'defineProperty' on proxy: trap returned truish for defining " \ | 194 "'defineProperty' on proxy: trap returned truish for defining " \ |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 541 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
540 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 542 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
541 Handle<Object> data); | 543 Handle<Object> data); |
542 }; | 544 }; |
543 | 545 |
544 | 546 |
545 } // namespace internal | 547 } // namespace internal |
546 } // namespace v8 | 548 } // namespace v8 |
547 | 549 |
548 #endif // V8_MESSAGES_H_ | 550 #endif // V8_MESSAGES_H_ |
OLD | NEW |