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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ | 393 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ |
394 T(TooManyArguments, \ | 394 T(TooManyArguments, \ |
395 "Too many arguments in function call (only 65535 allowed)") \ | 395 "Too many arguments in function call (only 65535 allowed)") \ |
396 T(TooManyParameters, \ | 396 T(TooManyParameters, \ |
397 "Too many parameters in function definition (only 65535 allowed)") \ | 397 "Too many parameters in function definition (only 65535 allowed)") \ |
398 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ | 398 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ |
399 T(UnexpectedEOS, "Unexpected end of input") \ | 399 T(UnexpectedEOS, "Unexpected end of input") \ |
400 T(UnexpectedReserved, "Unexpected reserved word") \ | 400 T(UnexpectedReserved, "Unexpected reserved word") \ |
401 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ | 401 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ |
402 T(UnexpectedSuper, "'super' keyword unexpected here") \ | 402 T(UnexpectedSuper, "'super' keyword unexpected here") \ |
| 403 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ |
403 T(UnexpectedTemplateString, "Unexpected template string") \ | 404 T(UnexpectedTemplateString, "Unexpected template string") \ |
404 T(UnexpectedToken, "Unexpected token %") \ | 405 T(UnexpectedToken, "Unexpected token %") \ |
405 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ | 406 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ |
406 T(UnexpectedTokenNumber, "Unexpected number") \ | 407 T(UnexpectedTokenNumber, "Unexpected number") \ |
407 T(UnexpectedTokenString, "Unexpected string") \ | 408 T(UnexpectedTokenString, "Unexpected string") \ |
408 T(UnknownLabel, "Undefined label '%'") \ | 409 T(UnknownLabel, "Undefined label '%'") \ |
409 T(UnterminatedArgList, "missing ) after argument list") \ | 410 T(UnterminatedArgList, "missing ) after argument list") \ |
410 T(UnterminatedRegExp, "Invalid regular expression: missing /") \ | 411 T(UnterminatedRegExp, "Invalid regular expression: missing /") \ |
411 T(UnterminatedTemplate, "Unterminated template literal") \ | 412 T(UnterminatedTemplate, "Unterminated template literal") \ |
412 T(UnterminatedTemplateExpr, "Missing } in template expression") \ | 413 T(UnterminatedTemplateExpr, "Missing } in template expression") \ |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 | 450 |
450 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 451 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, |
451 Handle<Object> message_obj); | 452 Handle<Object> message_obj); |
452 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 453 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
453 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 454 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
454 Handle<Object> data); | 455 Handle<Object> data); |
455 }; | 456 }; |
456 } } // namespace v8::internal | 457 } } // namespace v8::internal |
457 | 458 |
458 #endif // V8_MESSAGES_H_ | 459 #endif // V8_MESSAGES_H_ |
OLD | NEW |