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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 T(ObjectGetterExpectingFunction, \ | 152 T(ObjectGetterExpectingFunction, \ |
153 "Object.prototype.__defineGetter__: Expecting function") \ | 153 "Object.prototype.__defineGetter__: Expecting function") \ |
154 T(ObjectGetterCallable, "Getter must be a function: %") \ | 154 T(ObjectGetterCallable, "Getter must be a function: %") \ |
155 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ | 155 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ |
156 T(ObjectSetterExpectingFunction, \ | 156 T(ObjectSetterExpectingFunction, \ |
157 "Object.prototype.__defineSetter__: Expecting function") \ | 157 "Object.prototype.__defineSetter__: Expecting function") \ |
158 T(ObjectSetterCallable, "Setter must be a function: %") \ | 158 T(ObjectSetterCallable, "Setter must be a function: %") \ |
159 T(ObserveCallbackFrozen, \ | 159 T(ObserveCallbackFrozen, \ |
160 "Object.observe cannot deliver to a frozen function object") \ | 160 "Object.observe cannot deliver to a frozen function object") \ |
161 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \ | 161 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \ |
| 162 T(ObserveAccessChecked, "% cannot be called on access-checked objects") \ |
162 T(ObserveInvalidAccept, \ | 163 T(ObserveInvalidAccept, \ |
163 "Third argument to Object.observe must be an array of strings.") \ | 164 "Third argument to Object.observe must be an array of strings.") \ |
164 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \ | 165 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \ |
165 T(ObserveNonObject, "Object.% cannot % non-object") \ | 166 T(ObserveNonObject, "Object.% cannot % non-object") \ |
166 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ | 167 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ |
167 T(ObservePerformNonFunction, "Cannot perform non-function") \ | 168 T(ObservePerformNonFunction, "Cannot perform non-function") \ |
168 T(ObservePerformNonString, "Invalid non-string changeType") \ | 169 T(ObservePerformNonString, "Invalid non-string changeType") \ |
169 T(ObserveTypeNonString, \ | 170 T(ObserveTypeNonString, \ |
170 "Invalid changeRecord with non-string 'type' property") \ | 171 "Invalid changeRecord with non-string 'type' property") \ |
171 T(OrdinaryFunctionCalledAsConstructor, \ | 172 T(OrdinaryFunctionCalledAsConstructor, \ |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 | 481 |
481 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 482 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
482 Isolate* isolate, LookupIterator* property_lookup, | 483 Isolate* isolate, LookupIterator* property_lookup, |
483 Handle<String> default_value); | 484 Handle<String> default_value); |
484 | 485 |
485 List<Handle<JSObject> > visited_; | 486 List<Handle<JSObject> > visited_; |
486 }; | 487 }; |
487 } } // namespace v8::internal | 488 } } // namespace v8::internal |
488 | 489 |
489 #endif // V8_MESSAGES_H_ | 490 #endif // V8_MESSAGES_H_ |
OLD | NEW |