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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 "inside a block, or as the body of an if statement.") \ | 416 "inside a block, or as the body of an if statement.") \ |
417 T(SpeciesNotConstructor, \ | 417 T(SpeciesNotConstructor, \ |
418 "object.constructor[Symbol.species] is not a constructor") \ | 418 "object.constructor[Symbol.species] is not a constructor") \ |
419 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ | 419 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ |
420 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ | 420 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ |
421 T(StrictFunction, \ | 421 T(StrictFunction, \ |
422 "In strict mode code, functions can only be declared at top level or " \ | 422 "In strict mode code, functions can only be declared at top level or " \ |
423 "inside a block.") \ | 423 "inside a block.") \ |
424 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ | 424 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ |
425 T(StrictWith, "Strict mode code may not include a with statement") \ | 425 T(StrictWith, "Strict mode code may not include a with statement") \ |
| 426 T(TailCallInCatchBlock, \ |
| 427 "Tail call expression in catch block when finally block is also present.") \ |
| 428 T(TailCallInTryBlock, "Tail call expression in try block.") \ |
426 T(TemplateOctalLiteral, \ | 429 T(TemplateOctalLiteral, \ |
427 "Octal literals are not allowed in template strings.") \ | 430 "Octal literals are not allowed in template strings.") \ |
428 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ | 431 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ |
429 T(TooManyArguments, \ | 432 T(TooManyArguments, \ |
430 "Too many arguments in function call (only 65535 allowed)") \ | 433 "Too many arguments in function call (only 65535 allowed)") \ |
431 T(TooManyParameters, \ | 434 T(TooManyParameters, \ |
432 "Too many parameters in function definition (only 65535 allowed)") \ | 435 "Too many parameters in function definition (only 65535 allowed)") \ |
433 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ | 436 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ |
434 T(TypedArrayTooShort, \ | 437 T(TypedArrayTooShort, \ |
435 "Derived TypedArray constructor created an array which was too small") \ | 438 "Derived TypedArray constructor created an array which was too small") \ |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 512 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
510 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 513 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
511 Handle<Object> data); | 514 Handle<Object> data); |
512 }; | 515 }; |
513 | 516 |
514 | 517 |
515 } // namespace internal | 518 } // namespace internal |
516 } // namespace v8 | 519 } // namespace v8 |
517 | 520 |
518 #endif // V8_MESSAGES_H_ | 521 #endif // V8_MESSAGES_H_ |
OLD | NEW |