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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 "inside a block, or as the body of an if statement.") \ | 419 "inside a block, or as the body of an if statement.") \ |
420 T(SpeciesNotConstructor, \ | 420 T(SpeciesNotConstructor, \ |
421 "object.constructor[Symbol.species] is not a constructor") \ | 421 "object.constructor[Symbol.species] is not a constructor") \ |
422 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ | 422 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ |
423 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ | 423 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ |
424 T(StrictFunction, \ | 424 T(StrictFunction, \ |
425 "In strict mode code, functions can only be declared at top level or " \ | 425 "In strict mode code, functions can only be declared at top level or " \ |
426 "inside a block.") \ | 426 "inside a block.") \ |
427 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ | 427 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ |
428 T(StrictWith, "Strict mode code may not include a with statement") \ | 428 T(StrictWith, "Strict mode code may not include a with statement") \ |
429 T(TailCallInCatchBlock, \ | |
430 "Tail call expression in catch block when finally block is also present.") \ | |
431 T(TailCallInForInOf, "Tail call expression in for-in/of body.") \ | |
432 T(TailCallInTryBlock, "Tail call expression in try block.") \ | |
433 T(TemplateOctalLiteral, \ | 429 T(TemplateOctalLiteral, \ |
434 "Octal literals are not allowed in template strings.") \ | 430 "Octal literals are not allowed in template strings.") \ |
435 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ | 431 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ |
436 T(TooManyArguments, \ | 432 T(TooManyArguments, \ |
437 "Too many arguments in function call (only 65535 allowed)") \ | 433 "Too many arguments in function call (only 65535 allowed)") \ |
438 T(TooManyParameters, \ | 434 T(TooManyParameters, \ |
439 "Too many parameters in function definition (only 65535 allowed)") \ | 435 "Too many parameters in function definition (only 65535 allowed)") \ |
440 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ | 436 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ |
441 T(TypedArrayTooShort, \ | 437 T(TypedArrayTooShort, \ |
442 "Derived TypedArray constructor created an array which was too small") \ | 438 "Derived TypedArray constructor created an array which was too small") \ |
443 T(UnexpectedEOS, "Unexpected end of input") \ | 439 T(UnexpectedEOS, "Unexpected end of input") \ |
444 T(UnexpectedFunctionSent, \ | 440 T(UnexpectedFunctionSent, \ |
445 "function.sent expression is not allowed outside a generator") \ | 441 "function.sent expression is not allowed outside a generator") \ |
| 442 T(UnexpectedInsideTailCall, "Unexpected expression inside tail call") \ |
446 T(UnexpectedReserved, "Unexpected reserved word") \ | 443 T(UnexpectedReserved, "Unexpected reserved word") \ |
447 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ | 444 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ |
448 T(UnexpectedSuper, "'super' keyword unexpected here") \ | 445 T(UnexpectedSuper, "'super' keyword unexpected here") \ |
449 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ | 446 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ |
| 447 T(UnexpectedTailCall, "Tail call expression is not allowed here") \ |
| 448 T(UnexpectedTailCallInCatchBlock, \ |
| 449 "Tail call expression in catch block when finally block is also present") \ |
| 450 T(UnexpectedTailCallInForInOf, "Tail call expression in for-in/of body") \ |
| 451 T(UnexpectedTailCallInTryBlock, "Tail call expression in try block") \ |
450 T(UnexpectedTemplateString, "Unexpected template string") \ | 452 T(UnexpectedTemplateString, "Unexpected template string") \ |
451 T(UnexpectedToken, "Unexpected token %") \ | 453 T(UnexpectedToken, "Unexpected token %") \ |
452 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ | 454 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ |
453 T(UnexpectedTokenNumber, "Unexpected number") \ | 455 T(UnexpectedTokenNumber, "Unexpected number") \ |
454 T(UnexpectedTokenString, "Unexpected string") \ | 456 T(UnexpectedTokenString, "Unexpected string") \ |
455 T(UnexpectedTokenRegExp, "Unexpected regular expression") \ | 457 T(UnexpectedTokenRegExp, "Unexpected regular expression") \ |
456 T(UnknownLabel, "Undefined label '%'") \ | 458 T(UnknownLabel, "Undefined label '%'") \ |
457 T(UnterminatedArgList, "missing ) after argument list") \ | 459 T(UnterminatedArgList, "missing ) after argument list") \ |
458 T(UnterminatedRegExp, "Invalid regular expression: missing /") \ | 460 T(UnterminatedRegExp, "Invalid regular expression: missing /") \ |
459 T(UnterminatedTemplate, "Unterminated template literal") \ | 461 T(UnterminatedTemplate, "Unterminated template literal") \ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 519 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
518 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 520 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
519 Handle<Object> data); | 521 Handle<Object> data); |
520 }; | 522 }; |
521 | 523 |
522 | 524 |
523 } // namespace internal | 525 } // namespace internal |
524 } // namespace v8 | 526 } // namespace v8 |
525 | 527 |
526 #endif // V8_MESSAGES_H_ | 528 #endif // V8_MESSAGES_H_ |
OLD | NEW |