| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 "RegExp exec method returned something other than an Object or null") \ | 281 "RegExp exec method returned something other than an Object or null") \ |
| 282 T(InvalidSimdOperation, "% is not a valid type for this SIMD operation.") \ | 282 T(InvalidSimdOperation, "% is not a valid type for this SIMD operation.") \ |
| 283 T(IteratorResultNotAnObject, "Iterator result % is not an object") \ | 283 T(IteratorResultNotAnObject, "Iterator result % is not an object") \ |
| 284 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \ | 284 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \ |
| 285 T(LanguageID, "Language ID should be string or object.") \ | 285 T(LanguageID, "Language ID should be string or object.") \ |
| 286 T(MethodCalledOnWrongObject, \ | 286 T(MethodCalledOnWrongObject, \ |
| 287 "Method % called on a non-object or on a wrong type of object.") \ | 287 "Method % called on a non-object or on a wrong type of object.") \ |
| 288 T(MethodInvokedOnNullOrUndefined, \ | 288 T(MethodInvokedOnNullOrUndefined, \ |
| 289 "Method invoked on undefined or null value.") \ | 289 "Method invoked on undefined or null value.") \ |
| 290 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \ | 290 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \ |
| 291 T(MissingPrivateField, "Object does not have this private field.") \ |
| 291 T(NoAccess, "no access") \ | 292 T(NoAccess, "no access") \ |
| 292 T(NonCallableInInstanceOfCheck, \ | 293 T(NonCallableInInstanceOfCheck, \ |
| 293 "Right-hand side of 'instanceof' is not callable") \ | 294 "Right-hand side of 'instanceof' is not callable") \ |
| 294 T(NonCoercible, "Cannot match against 'undefined' or 'null'.") \ | 295 T(NonCoercible, "Cannot match against 'undefined' or 'null'.") \ |
| 295 T(NonExtensibleProto, "% is not extensible") \ | 296 T(NonExtensibleProto, "% is not extensible") \ |
| 296 T(NonObjectInInstanceOfCheck, \ | 297 T(NonObjectInInstanceOfCheck, \ |
| 297 "Right-hand side of 'instanceof' is not an object") \ | 298 "Right-hand side of 'instanceof' is not an object") \ |
| 298 T(NonObjectPropertyLoad, "Cannot read property '%' of %") \ | 299 T(NonObjectPropertyLoad, "Cannot read property '%' of %") \ |
| 299 T(NonObjectPropertyStore, "Cannot set property '%' of %") \ | 300 T(NonObjectPropertyStore, "Cannot set property '%' of %") \ |
| 300 T(NoSetterInCallback, "Cannot set property % of % which has only a getter") \ | 301 T(NoSetterInCallback, "Cannot set property % of % which has only a getter") \ |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 688 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 688 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, | 689 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, |
| 689 Handle<Object> data); | 690 Handle<Object> data); |
| 690 }; | 691 }; |
| 691 | 692 |
| 692 | 693 |
| 693 } // namespace internal | 694 } // namespace internal |
| 694 } // namespace v8 | 695 } // namespace v8 |
| 695 | 696 |
| 696 #endif // V8_MESSAGES_H_ | 697 #endif // V8_MESSAGES_H_ |
| OLD | NEW |