| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 "configurable in the proxy target") \ | 201 "configurable in the proxy target") \ |
| 202 T(ProxyDefinePropertyNonExtensible, \ | 202 T(ProxyDefinePropertyNonExtensible, \ |
| 203 "'defineProperty' on proxy: trap returned truish for adding property '%' " \ | 203 "'defineProperty' on proxy: trap returned truish for adding property '%' " \ |
| 204 " to the non-extensible proxy target") \ | 204 " to the non-extensible proxy target") \ |
| 205 T(ProxyDefinePropertyIncompatible, \ | 205 T(ProxyDefinePropertyIncompatible, \ |
| 206 "'defineProperty' on proxy: trap returned truish for adding property '%' " \ | 206 "'defineProperty' on proxy: trap returned truish for adding property '%' " \ |
| 207 " that is incompatible with the existing property in the proxy target") \ | 207 " that is incompatible with the existing property in the proxy target") \ |
| 208 T(ProxyDeletePropertyNonConfigurable, \ | 208 T(ProxyDeletePropertyNonConfigurable, \ |
| 209 "'deleteProperty' on proxy: trap returned truish for property '%' which " \ | 209 "'deleteProperty' on proxy: trap returned truish for property '%' which " \ |
| 210 "is non-configurable in the proxy target") \ | 210 "is non-configurable in the proxy target") \ |
| 211 T(ProxyEnumerateNonObject, "'enumerate' on proxy: trap returned non-object") \ | |
| 212 T(ProxyEnumerateNonString, \ | |
| 213 "'enumerate' on proxy: trap result includes non-string") \ | |
| 214 T(ProxyGetNonConfigurableData, \ | 211 T(ProxyGetNonConfigurableData, \ |
| 215 "'get' on proxy: property '%' is a read-only and " \ | 212 "'get' on proxy: property '%' is a read-only and " \ |
| 216 "non-configurable data property on the proxy target but the proxy " \ | 213 "non-configurable data property on the proxy target but the proxy " \ |
| 217 "did not return its actual value (expected '%' but got '%')") \ | 214 "did not return its actual value (expected '%' but got '%')") \ |
| 218 T(ProxyGetNonConfigurableAccessor, \ | 215 T(ProxyGetNonConfigurableAccessor, \ |
| 219 "'get' on proxy: property '%' is a non-configurable accessor " \ | 216 "'get' on proxy: property '%' is a non-configurable accessor " \ |
| 220 "property on the proxy target and does not have a getter function, but " \ | 217 "property on the proxy target and does not have a getter function, but " \ |
| 221 "the trap did not return 'undefined' (got '%')") \ | 218 "the trap did not return 'undefined' (got '%')") \ |
| 222 T(ProxyGetOwnPropertyDescriptorIncompatible, \ | 219 T(ProxyGetOwnPropertyDescriptorIncompatible, \ |
| 223 "'getOwnPropertyDescriptor' on proxy: trap returned descriptor for " \ | 220 "'getOwnPropertyDescriptor' on proxy: trap returned descriptor for " \ |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 561 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 565 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 562 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
| 566 Handle<Object> data); | 563 Handle<Object> data); |
| 567 }; | 564 }; |
| 568 | 565 |
| 569 | 566 |
| 570 } // namespace internal | 567 } // namespace internal |
| 571 } // namespace v8 | 568 } // namespace v8 |
| 572 | 569 |
| 573 #endif // V8_MESSAGES_H_ | 570 #endif // V8_MESSAGES_H_ |
| OLD | NEW |