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