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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 T(DerivedConstructorReturn, \ | 370 T(DerivedConstructorReturn, \ |
371 "Derived constructors may only return object or undefined") \ | 371 "Derived constructors may only return object or undefined") \ |
372 T(DuplicateConstructor, "A class may only have one constructor") \ | 372 T(DuplicateConstructor, "A class may only have one constructor") \ |
373 T(DuplicateExport, "Duplicate export of '%'") \ | 373 T(DuplicateExport, "Duplicate export of '%'") \ |
374 T(DuplicateProto, \ | 374 T(DuplicateProto, \ |
375 "Duplicate __proto__ fields are not allowed in object literals") \ | 375 "Duplicate __proto__ fields are not allowed in object literals") \ |
376 T(ForInOfLoopInitializer, \ | 376 T(ForInOfLoopInitializer, \ |
377 "% loop variable declaration may not have an initializer.") \ | 377 "% loop variable declaration may not have an initializer.") \ |
378 T(ForInOfLoopMultiBindings, \ | 378 T(ForInOfLoopMultiBindings, \ |
379 "Invalid left-hand side in % loop: Must have a single binding.") \ | 379 "Invalid left-hand side in % loop: Must have a single binding.") \ |
| 380 T(GeneratorInLegacyContext, \ |
| 381 "Generator declarations are not allowed in legacy contexts.") \ |
380 T(IllegalBreak, "Illegal break statement") \ | 382 T(IllegalBreak, "Illegal break statement") \ |
381 T(IllegalContinue, "Illegal continue statement") \ | 383 T(IllegalContinue, "Illegal continue statement") \ |
382 T(IllegalLanguageModeDirective, \ | 384 T(IllegalLanguageModeDirective, \ |
383 "Illegal '%' directive in function with non-simple parameter list") \ | 385 "Illegal '%' directive in function with non-simple parameter list") \ |
384 T(IllegalReturn, "Illegal return statement") \ | 386 T(IllegalReturn, "Illegal return statement") \ |
385 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \ | 387 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \ |
386 T(InvalidEscapedMetaProperty, "'%' must not contain escaped characters") \ | 388 T(InvalidEscapedMetaProperty, "'%' must not contain escaped characters") \ |
387 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ | 389 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ |
388 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \ | 390 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \ |
389 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \ | 391 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \ |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 524 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
523 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 525 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
524 Handle<Object> data); | 526 Handle<Object> data); |
525 }; | 527 }; |
526 | 528 |
527 | 529 |
528 } // namespace internal | 530 } // namespace internal |
529 } // namespace v8 | 531 } // namespace v8 |
530 | 532 |
531 #endif // V8_MESSAGES_H_ | 533 #endif // V8_MESSAGES_H_ |
OLD | NEW |