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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 T(NotSharedTypedArray, "% is not a shared typed array.") \ | 165 T(NotSharedTypedArray, "% is not a shared typed array.") \ |
166 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \ | 166 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \ |
167 T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \ | 167 T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \ |
168 T(ObjectGetterExpectingFunction, \ | 168 T(ObjectGetterExpectingFunction, \ |
169 "Object.prototype.__defineGetter__: Expecting function") \ | 169 "Object.prototype.__defineGetter__: Expecting function") \ |
170 T(ObjectGetterCallable, "Getter must be a function: %") \ | 170 T(ObjectGetterCallable, "Getter must be a function: %") \ |
171 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ | 171 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ |
172 T(ObjectSetterExpectingFunction, \ | 172 T(ObjectSetterExpectingFunction, \ |
173 "Object.prototype.__defineSetter__: Expecting function") \ | 173 "Object.prototype.__defineSetter__: Expecting function") \ |
174 T(ObjectSetterCallable, "Setter must be a function: %") \ | 174 T(ObjectSetterCallable, "Setter must be a function: %") \ |
175 T(ObserveCallbackFrozen, \ | |
176 "Object.observe cannot deliver to a frozen function object") \ | |
177 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \ | |
178 T(ObserveAccessChecked, "% cannot be called on access-checked objects") \ | |
179 T(ObserveInvalidAccept, \ | |
180 "Third argument to Object.observe must be an array of strings.") \ | |
181 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \ | |
182 T(ObserveNonObject, "Object.% cannot % non-object") \ | |
183 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ | |
184 T(ObservePerformNonFunction, "Cannot perform non-function") \ | |
185 T(ObservePerformNonString, "Invalid non-string changeType") \ | |
186 T(ObserveTypeNonString, \ | |
187 "Invalid changeRecord with non-string 'type' property") \ | |
188 T(OrdinaryFunctionCalledAsConstructor, \ | 175 T(OrdinaryFunctionCalledAsConstructor, \ |
189 "Function object that's not a constructor was created with new") \ | 176 "Function object that's not a constructor was created with new") \ |
190 T(PromiseCyclic, "Chaining cycle detected for promise %") \ | 177 T(PromiseCyclic, "Chaining cycle detected for promise %") \ |
191 T(PromiseExecutorAlreadyInvoked, \ | 178 T(PromiseExecutorAlreadyInvoked, \ |
192 "Promise executor has already been invoked with non-undefined arguments") \ | 179 "Promise executor has already been invoked with non-undefined arguments") \ |
193 T(PromiseNonCallable, "Promise resolve or reject function is not callable") \ | 180 T(PromiseNonCallable, "Promise resolve or reject function is not callable") \ |
194 T(PropertyDescObject, "Property description must be an object: %") \ | 181 T(PropertyDescObject, "Property description must be an object: %") \ |
195 T(PropertyNotFunction, \ | 182 T(PropertyNotFunction, \ |
196 "'%' returned for property '%' of object '%' is not a function") \ | 183 "'%' returned for property '%' of object '%' is not a function") \ |
197 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ | 184 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 509 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
523 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 510 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
524 Handle<Object> data); | 511 Handle<Object> data); |
525 }; | 512 }; |
526 | 513 |
527 | 514 |
528 } // namespace internal | 515 } // namespace internal |
529 } // namespace v8 | 516 } // namespace v8 |
530 | 517 |
531 #endif // V8_MESSAGES_H_ | 518 #endif // V8_MESSAGES_H_ |
OLD | NEW |