| 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \ | 399 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \ |
| 400 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ | 400 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ |
| 401 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \ | 401 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \ |
| 402 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \ | 402 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \ |
| 403 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ | 403 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ |
| 404 T(InvalidLhsInPostfixOp, \ | 404 T(InvalidLhsInPostfixOp, \ |
| 405 "Invalid left-hand side expression in postfix operation") \ | 405 "Invalid left-hand side expression in postfix operation") \ |
| 406 T(InvalidLhsInPrefixOp, \ | 406 T(InvalidLhsInPrefixOp, \ |
| 407 "Invalid left-hand side expression in prefix operation") \ | 407 "Invalid left-hand side expression in prefix operation") \ |
| 408 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ | 408 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ |
| 409 T(JsonParseUnexpectedEOS, "Unexpected end of JSON input") \ |
| 410 T(JsonParseUnexpectedToken, "Unexpected token % in JSON at position %") \ |
| 411 T(JsonParseUnexpectedTokenNumber, "Unexpected number in JSON at position %") \ |
| 412 T(JsonParseUnexpectedTokenString, "Unexpected string in JSON at position %") \ |
| 409 T(LabelRedeclaration, "Label '%' has already been declared") \ | 413 T(LabelRedeclaration, "Label '%' has already been declared") \ |
| 410 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ | 414 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ |
| 411 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ | 415 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ |
| 412 T(MalformedRegExpFlags, "Invalid regular expression flags") \ | 416 T(MalformedRegExpFlags, "Invalid regular expression flags") \ |
| 413 T(ModuleExportUndefined, "Export '%' is not defined in module") \ | 417 T(ModuleExportUndefined, "Export '%' is not defined in module") \ |
| 414 T(MultipleDefaultsInSwitch, \ | 418 T(MultipleDefaultsInSwitch, \ |
| 415 "More than one default clause in switch statement") \ | 419 "More than one default clause in switch statement") \ |
| 416 T(NewlineAfterThrow, "Illegal newline after throw") \ | 420 T(NewlineAfterThrow, "Illegal newline after throw") \ |
| 417 T(NoCatchOrFinally, "Missing catch or finally after try") \ | 421 T(NoCatchOrFinally, "Missing catch or finally after try") \ |
| 418 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ | 422 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 563 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 560 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 564 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
| 561 Handle<Object> data); | 565 Handle<Object> data); |
| 562 }; | 566 }; |
| 563 | 567 |
| 564 | 568 |
| 565 } // namespace internal | 569 } // namespace internal |
| 566 } // namespace v8 | 570 } // namespace v8 |
| 567 | 571 |
| 568 #endif // V8_MESSAGES_H_ | 572 #endif // V8_MESSAGES_H_ |
| OLD | NEW |