| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 T(DerivedConstructorReturn, \ | 357 T(DerivedConstructorReturn, \ |
| 358 "Derived constructors may only return object or undefined") \ | 358 "Derived constructors may only return object or undefined") \ |
| 359 T(DuplicateConstructor, "A class may only have one constructor") \ | 359 T(DuplicateConstructor, "A class may only have one constructor") \ |
| 360 T(DuplicateExport, "Duplicate export of '%'") \ | 360 T(DuplicateExport, "Duplicate export of '%'") \ |
| 361 T(DuplicateProto, \ | 361 T(DuplicateProto, \ |
| 362 "Duplicate __proto__ fields are not allowed in object literals") \ | 362 "Duplicate __proto__ fields are not allowed in object literals") \ |
| 363 T(ForInOfLoopInitializer, \ | 363 T(ForInOfLoopInitializer, \ |
| 364 "% loop variable declaration may not have an initializer.") \ | 364 "% loop variable declaration may not have an initializer.") \ |
| 365 T(ForInOfLoopMultiBindings, \ | 365 T(ForInOfLoopMultiBindings, \ |
| 366 "Invalid left-hand side in % loop: Must have a single binding.") \ | 366 "Invalid left-hand side in % loop: Must have a single binding.") \ |
| 367 T(GeneratorInLegacyContext, \ |
| 368 "Generator declarations are not allowed in legacy contexts.") \ |
| 367 T(IllegalBreak, "Illegal break statement") \ | 369 T(IllegalBreak, "Illegal break statement") \ |
| 368 T(IllegalContinue, "Illegal continue statement") \ | 370 T(IllegalContinue, "Illegal continue statement") \ |
| 369 T(IllegalLanguageModeDirective, \ | 371 T(IllegalLanguageModeDirective, \ |
| 370 "Illegal '%' directive in function with non-simple parameter list") \ | 372 "Illegal '%' directive in function with non-simple parameter list") \ |
| 371 T(IllegalReturn, "Illegal return statement") \ | 373 T(IllegalReturn, "Illegal return statement") \ |
| 372 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \ | 374 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \ |
| 373 T(InvalidEscapedMetaProperty, "'%' must not contain escaped characters") \ | 375 T(InvalidEscapedMetaProperty, "'%' must not contain escaped characters") \ |
| 374 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ | 376 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ |
| 375 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \ | 377 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \ |
| 376 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \ | 378 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \ |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 515 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 514 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 516 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
| 515 Handle<Object> data); | 517 Handle<Object> data); |
| 516 }; | 518 }; |
| 517 | 519 |
| 518 | 520 |
| 519 } // namespace internal | 521 } // namespace internal |
| 520 } // namespace v8 | 522 } // namespace v8 |
| 521 | 523 |
| 522 #endif // V8_MESSAGES_H_ | 524 #endif // V8_MESSAGES_H_ |
| OLD | NEW |