| 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ | 435 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ |
| 436 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ | 436 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ |
| 437 T(StrictFunction, \ | 437 T(StrictFunction, \ |
| 438 "In strict mode code, functions can only be declared at top level or " \ | 438 "In strict mode code, functions can only be declared at top level or " \ |
| 439 "inside a block.") \ | 439 "inside a block.") \ |
| 440 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ | 440 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ |
| 441 T(StrictWith, "Strict mode code may not include a with statement") \ | 441 T(StrictWith, "Strict mode code may not include a with statement") \ |
| 442 T(TemplateOctalLiteral, \ | 442 T(TemplateOctalLiteral, \ |
| 443 "Octal literals are not allowed in template strings.") \ | 443 "Octal literals are not allowed in template strings.") \ |
| 444 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ | 444 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ |
| 445 T(AwaitBindingIdentifier, \ |
| 446 "'await' is not a valid identifier name in an async function") \ |
| 447 T(AwaitExpressionFormalParameter, \ |
| 448 "Illegal await-expression in formal parameters of async function") \ |
| 445 T(TooManyArguments, \ | 449 T(TooManyArguments, \ |
| 446 "Too many arguments in function call (only 65535 allowed)") \ | 450 "Too many arguments in function call (only 65535 allowed)") \ |
| 447 T(TooManyParameters, \ | 451 T(TooManyParameters, \ |
| 448 "Too many parameters in function definition (only 65535 allowed)") \ | 452 "Too many parameters in function definition (only 65535 allowed)") \ |
| 449 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ | 453 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ |
| 450 T(TypedArrayTooShort, \ | 454 T(TypedArrayTooShort, \ |
| 451 "Derived TypedArray constructor created an array which was too small") \ | 455 "Derived TypedArray constructor created an array which was too small") \ |
| 452 T(UnexpectedEOS, "Unexpected end of input") \ | 456 T(UnexpectedEOS, "Unexpected end of input") \ |
| 453 T(UnexpectedFunctionSent, \ | 457 T(UnexpectedFunctionSent, \ |
| 454 "function.sent expression is not allowed outside a generator") \ | 458 "function.sent expression is not allowed outside a generator") \ |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 520 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 517 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 521 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
| 518 Handle<Object> data); | 522 Handle<Object> data); |
| 519 }; | 523 }; |
| 520 | 524 |
| 521 | 525 |
| 522 } // namespace internal | 526 } // namespace internal |
| 523 } // namespace v8 | 527 } // namespace v8 |
| 524 | 528 |
| 525 #endif // V8_MESSAGES_H_ | 529 #endif // V8_MESSAGES_H_ |
| OLD | NEW |