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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ | 301 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ |
302 T(ExtendsValueNotConstructor, \ | 302 T(ExtendsValueNotConstructor, \ |
303 "Class extends value % is not a constructor or null") \ | 303 "Class extends value % is not a constructor or null") \ |
304 T(FirstArgumentNotRegExp, \ | 304 T(FirstArgumentNotRegExp, \ |
305 "First argument to % must not be a regular expression") \ | 305 "First argument to % must not be a regular expression") \ |
306 T(FunctionBind, "Bind must be called on a function") \ | 306 T(FunctionBind, "Bind must be called on a function") \ |
307 T(GeneratorRunning, "Generator is already running") \ | 307 T(GeneratorRunning, "Generator is already running") \ |
308 T(IllegalInvocation, "Illegal invocation") \ | 308 T(IllegalInvocation, "Illegal invocation") \ |
309 T(ImmutablePrototypeSet, \ | 309 T(ImmutablePrototypeSet, \ |
310 "Immutable prototype object '%' cannot have their prototype set") \ | 310 "Immutable prototype object '%' cannot have their prototype set") \ |
| 311 T(ImportCallNotNewExpression, "Cannot use new with import") \ |
311 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ | 312 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ |
312 T(InstanceofNonobjectProto, \ | 313 T(InstanceofNonobjectProto, \ |
313 "Function has non-object prototype '%' in instanceof check") \ | 314 "Function has non-object prototype '%' in instanceof check") \ |
314 T(InvalidArgument, "invalid_argument") \ | 315 T(InvalidArgument, "invalid_argument") \ |
315 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ | 316 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ |
316 T(InvalidRegExpExecResult, \ | 317 T(InvalidRegExpExecResult, \ |
317 "RegExp exec method returned something other than an Object or null") \ | 318 "RegExp exec method returned something other than an Object or null") \ |
318 T(InvalidSimdOperation, "% is not a valid type for this SIMD operation.") \ | 319 T(InvalidSimdOperation, "% is not a valid type for this SIMD operation.") \ |
319 T(IteratorResultNotAnObject, "Iterator result % is not an object") \ | 320 T(IteratorResultNotAnObject, "Iterator result % is not an object") \ |
320 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \ | 321 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \ |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 const MessageLocation* loc, | 734 const MessageLocation* loc, |
734 Handle<Object> message_obj, | 735 Handle<Object> message_obj, |
735 v8::Local<v8::Value> api_exception_obj); | 736 v8::Local<v8::Value> api_exception_obj); |
736 }; | 737 }; |
737 | 738 |
738 | 739 |
739 } // namespace internal | 740 } // namespace internal |
740 } // namespace v8 | 741 } // namespace v8 |
741 | 742 |
742 #endif // V8_MESSAGES_H_ | 743 #endif // V8_MESSAGES_H_ |
OLD | NEW |