| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ | 180 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ |
| 181 T(ObservePerformNonFunction, "Cannot perform non-function") \ | 181 T(ObservePerformNonFunction, "Cannot perform non-function") \ |
| 182 T(ObservePerformNonString, "Invalid non-string changeType") \ | 182 T(ObservePerformNonString, "Invalid non-string changeType") \ |
| 183 T(ObserveTypeNonString, \ | 183 T(ObserveTypeNonString, \ |
| 184 "Invalid changeRecord with non-string 'type' property") \ | 184 "Invalid changeRecord with non-string 'type' property") \ |
| 185 T(OrdinaryFunctionCalledAsConstructor, \ | 185 T(OrdinaryFunctionCalledAsConstructor, \ |
| 186 "Function object that's not a constructor was created with new") \ | 186 "Function object that's not a constructor was created with new") \ |
| 187 T(PromiseCyclic, "Chaining cycle detected for promise %") \ | 187 T(PromiseCyclic, "Chaining cycle detected for promise %") \ |
| 188 T(PromiseExecutorAlreadyInvoked, \ | 188 T(PromiseExecutorAlreadyInvoked, \ |
| 189 "Promise executor has already been invoked with non-undefined arguments") \ | 189 "Promise executor has already been invoked with non-undefined arguments") \ |
| 190 T(PromiseNonCallable, "Promise resolve or reject function is not callable") \ |
| 190 T(PropertyDescObject, "Property description must be an object: %") \ | 191 T(PropertyDescObject, "Property description must be an object: %") \ |
| 191 T(PropertyNotFunction, \ | 192 T(PropertyNotFunction, \ |
| 192 "'%' returned for property '%' of object '%' is not a function") \ | 193 "'%' returned for property '%' of object '%' is not a function") \ |
| 193 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ | 194 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ |
| 194 T(PrototypeParentNotAnObject, \ | 195 T(PrototypeParentNotAnObject, \ |
| 195 "Class extends value does not have valid prototype property %") \ | 196 "Class extends value does not have valid prototype property %") \ |
| 196 T(ProxyConstructNonObject, \ | 197 T(ProxyConstructNonObject, \ |
| 197 "'construct' on proxy: trap returned non-object ('%')") \ | 198 "'construct' on proxy: trap returned non-object ('%')") \ |
| 198 T(ProxyDefinePropertyNonConfigurable, \ | 199 T(ProxyDefinePropertyNonConfigurable, \ |
| 199 "'defineProperty' on proxy: trap returned truish for defining " \ | 200 "'defineProperty' on proxy: trap returned truish for defining " \ |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 558 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 558 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 559 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
| 559 Handle<Object> data); | 560 Handle<Object> data); |
| 560 }; | 561 }; |
| 561 | 562 |
| 562 | 563 |
| 563 } // namespace internal | 564 } // namespace internal |
| 564 } // namespace v8 | 565 } // namespace v8 |
| 565 | 566 |
| 566 #endif // V8_MESSAGES_H_ | 567 #endif // V8_MESSAGES_H_ |
| OLD | NEW |