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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(TemplateOctalLiteral, \ | 429 T(TemplateOctalLiteral, \ |
430 "Octal literals are not allowed in template strings.") \ | 430 "Octal literals are not allowed in template strings.") \ |
431 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ | 431 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ |
| 432 T(AwaitBindingIdentifier, \ |
| 433 "'await' is not a valid identifier name in an async function") \ |
| 434 T(AwaitExpressionFormalParameter, \ |
| 435 "Illegal await-expression in formal parameters of async function") \ |
432 T(TooManyArguments, \ | 436 T(TooManyArguments, \ |
433 "Too many arguments in function call (only 65535 allowed)") \ | 437 "Too many arguments in function call (only 65535 allowed)") \ |
434 T(TooManyParameters, \ | 438 T(TooManyParameters, \ |
435 "Too many parameters in function definition (only 65535 allowed)") \ | 439 "Too many parameters in function definition (only 65535 allowed)") \ |
436 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ | 440 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ |
437 T(TypedArrayTooShort, \ | 441 T(TypedArrayTooShort, \ |
438 "Derived TypedArray constructor created an array which was too small") \ | 442 "Derived TypedArray constructor created an array which was too small") \ |
439 T(UnexpectedEOS, "Unexpected end of input") \ | 443 T(UnexpectedEOS, "Unexpected end of input") \ |
440 T(UnexpectedFunctionSent, \ | 444 T(UnexpectedFunctionSent, \ |
441 "function.sent expression is not allowed outside a generator") \ | 445 "function.sent expression is not allowed outside a generator") \ |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 523 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
520 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 524 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
521 Handle<Object> data); | 525 Handle<Object> data); |
522 }; | 526 }; |
523 | 527 |
524 | 528 |
525 } // namespace internal | 529 } // namespace internal |
526 } // namespace v8 | 530 } // namespace v8 |
527 | 531 |
528 #endif // V8_MESSAGES_H_ | 532 #endif // V8_MESSAGES_H_ |
OLD | NEW |