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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 "Invalid left-hand side expression in postfix operation") \ | 391 "Invalid left-hand side expression in postfix operation") \ |
392 T(InvalidLhsInPrefixOp, \ | 392 T(InvalidLhsInPrefixOp, \ |
393 "Invalid left-hand side expression in prefix operation") \ | 393 "Invalid left-hand side expression in prefix operation") \ |
394 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ | 394 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ |
395 T(InvalidOrUnexpectedToken, "Invalid or unexpected token") \ | 395 T(InvalidOrUnexpectedToken, "Invalid or unexpected token") \ |
396 T(JsonParseUnexpectedEOS, "Unexpected end of JSON input") \ | 396 T(JsonParseUnexpectedEOS, "Unexpected end of JSON input") \ |
397 T(JsonParseUnexpectedToken, "Unexpected token % in JSON at position %") \ | 397 T(JsonParseUnexpectedToken, "Unexpected token % in JSON at position %") \ |
398 T(JsonParseUnexpectedTokenNumber, "Unexpected number in JSON at position %") \ | 398 T(JsonParseUnexpectedTokenNumber, "Unexpected number in JSON at position %") \ |
399 T(JsonParseUnexpectedTokenString, "Unexpected string in JSON at position %") \ | 399 T(JsonParseUnexpectedTokenString, "Unexpected string in JSON at position %") \ |
400 T(LabelRedeclaration, "Label '%' has already been declared") \ | 400 T(LabelRedeclaration, "Label '%' has already been declared") \ |
| 401 T(LabelledFunctionDeclaration, \ |
| 402 "Labelled function declaration not allowed as the body of a control flow " \ |
| 403 "structure") \ |
401 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ | 404 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ |
402 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ | 405 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ |
403 T(MalformedRegExpFlags, "Invalid regular expression flags") \ | 406 T(MalformedRegExpFlags, "Invalid regular expression flags") \ |
404 T(ModuleExportUndefined, "Export '%' is not defined in module") \ | 407 T(ModuleExportUndefined, "Export '%' is not defined in module") \ |
405 T(MultipleDefaultsInSwitch, \ | 408 T(MultipleDefaultsInSwitch, \ |
406 "More than one default clause in switch statement") \ | 409 "More than one default clause in switch statement") \ |
407 T(NewlineAfterThrow, "Illegal newline after throw") \ | 410 T(NewlineAfterThrow, "Illegal newline after throw") \ |
408 T(NoCatchOrFinally, "Missing catch or finally after try") \ | 411 T(NoCatchOrFinally, "Missing catch or finally after try") \ |
409 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ | 412 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ |
410 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ | 413 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 515 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
513 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 516 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
514 Handle<Object> data); | 517 Handle<Object> data); |
515 }; | 518 }; |
516 | 519 |
517 | 520 |
518 } // namespace internal | 521 } // namespace internal |
519 } // namespace v8 | 522 } // namespace v8 |
520 | 523 |
521 #endif // V8_MESSAGES_H_ | 524 #endif // V8_MESSAGES_H_ |
OLD | NEW |