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 379 matching lines...) Loading... |
390 "% loop variable declaration may not have an initializer.") \ | 390 "% loop variable declaration may not have an initializer.") \ |
391 T(ForInOfLoopMultiBindings, \ | 391 T(ForInOfLoopMultiBindings, \ |
392 "Invalid left-hand side in % loop: Must have a single binding.") \ | 392 "Invalid left-hand side in % loop: Must have a single binding.") \ |
393 T(IllegalAccess, "Illegal access") \ | 393 T(IllegalAccess, "Illegal access") \ |
394 T(IllegalBreak, "Illegal break statement") \ | 394 T(IllegalBreak, "Illegal break statement") \ |
395 T(IllegalContinue, "Illegal continue statement") \ | 395 T(IllegalContinue, "Illegal continue statement") \ |
396 T(IllegalLanguageModeDirective, \ | 396 T(IllegalLanguageModeDirective, \ |
397 "Illegal '%' directive in function with non-simple parameter list") \ | 397 "Illegal '%' directive in function with non-simple parameter list") \ |
398 T(IllegalReturn, "Illegal return statement") \ | 398 T(IllegalReturn, "Illegal return statement") \ |
399 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \ | 399 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \ |
| 400 T(InvalidEscapedMetaProperty, "'%' must not contain escaped characters") \ |
400 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ | 401 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ |
401 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \ | 402 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \ |
402 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \ | 403 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \ |
403 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ | 404 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ |
404 T(InvalidLhsInPostfixOp, \ | 405 T(InvalidLhsInPostfixOp, \ |
405 "Invalid left-hand side expression in postfix operation") \ | 406 "Invalid left-hand side expression in postfix operation") \ |
406 T(InvalidLhsInPrefixOp, \ | 407 T(InvalidLhsInPrefixOp, \ |
407 "Invalid left-hand side expression in prefix operation") \ | 408 "Invalid left-hand side expression in prefix operation") \ |
408 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ | 409 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ |
409 T(JsonParseUnexpectedEOS, "Unexpected end of JSON input") \ | 410 T(JsonParseUnexpectedEOS, "Unexpected end of JSON input") \ |
(...skipping 153 matching lines...) Loading... |
563 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 564 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
564 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 565 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
565 Handle<Object> data); | 566 Handle<Object> data); |
566 }; | 567 }; |
567 | 568 |
568 | 569 |
569 } // namespace internal | 570 } // namespace internal |
570 } // namespace v8 | 571 } // namespace v8 |
571 | 572 |
572 #endif // V8_MESSAGES_H_ | 573 #endif // V8_MESSAGES_H_ |
OLD | NEW |