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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 "Octal literals are not allowed in template strings.") \ | 432 "Octal literals are not allowed in template strings.") \ |
433 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ | 433 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ |
434 T(AwaitBindingIdentifier, \ | 434 T(AwaitBindingIdentifier, \ |
435 "'await' is not a valid identifier name in an async function") \ | 435 "'await' is not a valid identifier name in an async function") \ |
436 T(AwaitExpressionFormalParameter, \ | 436 T(AwaitExpressionFormalParameter, \ |
437 "Illegal await-expression in formal parameters of async function") \ | 437 "Illegal await-expression in formal parameters of async function") \ |
438 T(TooManyArguments, \ | 438 T(TooManyArguments, \ |
439 "Too many arguments in function call (only 65535 allowed)") \ | 439 "Too many arguments in function call (only 65535 allowed)") \ |
440 T(TooManyParameters, \ | 440 T(TooManyParameters, \ |
441 "Too many parameters in function definition (only 65535 allowed)") \ | 441 "Too many parameters in function definition (only 65535 allowed)") \ |
| 442 T(TooManySpreads, \ |
| 443 "Literal containing too many nested spreads (up to 65534 allowed)") \ |
442 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ | 444 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ |
443 T(TypedArrayTooShort, \ | 445 T(TypedArrayTooShort, \ |
444 "Derived TypedArray constructor created an array which was too small") \ | 446 "Derived TypedArray constructor created an array which was too small") \ |
445 T(UnexpectedEOS, "Unexpected end of input") \ | 447 T(UnexpectedEOS, "Unexpected end of input") \ |
446 T(UnexpectedFunctionSent, \ | 448 T(UnexpectedFunctionSent, \ |
447 "function.sent expression is not allowed outside a generator") \ | 449 "function.sent expression is not allowed outside a generator") \ |
448 T(UnexpectedInsideTailCall, "Unexpected expression inside tail call") \ | 450 T(UnexpectedInsideTailCall, "Unexpected expression inside tail call") \ |
449 T(UnexpectedReserved, "Unexpected reserved word") \ | 451 T(UnexpectedReserved, "Unexpected reserved word") \ |
450 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ | 452 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ |
451 T(UnexpectedSuper, "'super' keyword unexpected here") \ | 453 T(UnexpectedSuper, "'super' keyword unexpected here") \ |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 530 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
529 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 531 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
530 Handle<Object> data); | 532 Handle<Object> data); |
531 }; | 533 }; |
532 | 534 |
533 | 535 |
534 } // namespace internal | 536 } // namespace internal |
535 } // namespace v8 | 537 } // namespace v8 |
536 | 538 |
537 #endif // V8_MESSAGES_H_ | 539 #endif // V8_MESSAGES_H_ |
OLD | NEW |