| Index: src/parsing/parser.cc
|
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
|
| index a47a0b48d27243352c9a7a189735614f8674755e..ce24c3f7d77b7e47fa9a00b6f3a2696947053e01 100644
|
| --- a/src/parsing/parser.cc
|
| +++ b/src/parsing/parser.cc
|
| @@ -2624,7 +2624,7 @@ Statement* Parser::ParseReturnStatement(bool* ok) {
|
| function_state_, ReturnExprContext::kInsideValidReturnStatement);
|
| return_value = ParseExpression(true, CHECK_OK);
|
|
|
| - if (allow_tailcalls() && !is_sloppy(language_mode())) {
|
| + if (allow_tailcalls() && !is_sloppy(language_mode()) && !is_resumable()) {
|
| // ES6 14.6.1 Static Semantics: IsInTailPosition
|
| function_state_->AddImplicitTailCallExpression(return_value);
|
| }
|
|
|