Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(702)

Side by Side Diff: src/messages.h

Issue 1914423002: [es8] Report proper syntax error for tail call expressions in for-in and for-of bodies. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@tco-fix
Patch Set: Addressing comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, \ 426 T(TailCallInCatchBlock, \
427 "Tail call expression in catch block when finally block is also present.") \ 427 "Tail call expression in catch block when finally block is also present.") \
428 T(TailCallInForInOf, "Tail call expression in for-in/of body.") \
428 T(TailCallInTryBlock, "Tail call expression in try block.") \ 429 T(TailCallInTryBlock, "Tail call expression in try block.") \
429 T(TemplateOctalLiteral, \ 430 T(TemplateOctalLiteral, \
430 "Octal literals are not allowed in template strings.") \ 431 "Octal literals are not allowed in template strings.") \
431 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ 432 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \
432 T(TooManyArguments, \ 433 T(TooManyArguments, \
433 "Too many arguments in function call (only 65535 allowed)") \ 434 "Too many arguments in function call (only 65535 allowed)") \
434 T(TooManyParameters, \ 435 T(TooManyParameters, \
435 "Too many parameters in function definition (only 65535 allowed)") \ 436 "Too many parameters in function definition (only 65535 allowed)") \
436 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ 437 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \
437 T(TypedArrayTooShort, \ 438 T(TypedArrayTooShort, \
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 513 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
513 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 514 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
514 Handle<Object> data); 515 Handle<Object> data);
515 }; 516 };
516 517
517 518
518 } // namespace internal 519 } // namespace internal
519 } // namespace v8 520 } // namespace v8
520 521
521 #endif // V8_MESSAGES_H_ 522 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698