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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 T(StrictCannotAssign, "Cannot assign to read only '%' in strict mode") \ | 469 T(StrictCannotAssign, "Cannot assign to read only '%' in strict mode") \ |
470 T(StrictDeleteProperty, "Cannot delete property '%' of %") \ | 470 T(StrictDeleteProperty, "Cannot delete property '%' of %") \ |
471 T(StrictPoisonPill, \ | 471 T(StrictPoisonPill, \ |
472 "'caller', 'callee', and 'arguments' properties may not be accessed on " \ | 472 "'caller', 'callee', and 'arguments' properties may not be accessed on " \ |
473 "strict mode functions or the arguments objects for calls to them") \ | 473 "strict mode functions or the arguments objects for calls to them") \ |
474 T(StrictReadOnlyProperty, \ | 474 T(StrictReadOnlyProperty, \ |
475 "Cannot assign to read only property '%' of % '%'") \ | 475 "Cannot assign to read only property '%' of % '%'") \ |
476 T(StrictCannotCreateProperty, "Cannot create property '%' on % '%'") \ | 476 T(StrictCannotCreateProperty, "Cannot create property '%' on % '%'") \ |
477 T(SymbolIteratorInvalid, \ | 477 T(SymbolIteratorInvalid, \ |
478 "Result of the Symbol.iterator method is not an object") \ | 478 "Result of the Symbol.iterator method is not an object") \ |
| 479 T(SymbolAsyncIteratorInvalid, \ |
| 480 "Result of the Symbol.asyncIterator method is not an object") \ |
479 T(SymbolKeyFor, "% is not a symbol") \ | 481 T(SymbolKeyFor, "% is not a symbol") \ |
480 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ | 482 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ |
481 T(SymbolToString, "Cannot convert a Symbol value to a string") \ | 483 T(SymbolToString, "Cannot convert a Symbol value to a string") \ |
482 T(SimdToNumber, "Cannot convert a SIMD value to a number") \ | 484 T(SimdToNumber, "Cannot convert a SIMD value to a number") \ |
483 T(ThrowMethodMissing, "The iterator does not provide a 'throw' method.") \ | 485 T(ThrowMethodMissing, "The iterator does not provide a 'throw' method.") \ |
484 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ | 486 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ |
485 T(ValueAndAccessor, \ | 487 T(ValueAndAccessor, \ |
486 "Invalid property descriptor. Cannot both specify accessors and a value " \ | 488 "Invalid property descriptor. Cannot both specify accessors and a value " \ |
487 "or writable attribute, %") \ | 489 "or writable attribute, %") \ |
488 T(VarRedeclaration, "Identifier '%' has already been declared") \ | 490 T(VarRedeclaration, "Identifier '%' has already been declared") \ |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 const MessageLocation* loc, | 736 const MessageLocation* loc, |
735 Handle<Object> message_obj, | 737 Handle<Object> message_obj, |
736 v8::Local<v8::Value> api_exception_obj); | 738 v8::Local<v8::Value> api_exception_obj); |
737 }; | 739 }; |
738 | 740 |
739 | 741 |
740 } // namespace internal | 742 } // namespace internal |
741 } // namespace v8 | 743 } // namespace v8 |
742 | 744 |
743 #endif // V8_MESSAGES_H_ | 745 #endif // V8_MESSAGES_H_ |
OLD | NEW |