| Index: src/parsing/parser-base.h
|
| diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h
|
| index 27b9764434c5364ff18c9cf561acde122b80090d..6e19af6aff5126e77b97b367c0629800b5e297b5 100644
|
| --- a/src/parsing/parser-base.h
|
| +++ b/src/parsing/parser-base.h
|
| @@ -2863,6 +2863,10 @@ ParserBase<Traits>::ParseArrowFunctionLiteral(
|
| body->Add(factory()->NewReturnStatement(expression, pos), zone());
|
| materialized_literal_count = function_state.materialized_literal_count();
|
| expected_property_count = function_state.expected_property_count();
|
| + // ES6 14.6.1 Static Semantics: IsInTailPosition
|
| + if (allow_tailcalls() && !is_sloppy(language_mode())) {
|
| + this->MarkExpressionInTailPosition(expression);
|
| + }
|
| }
|
| super_loc = function_state.super_location();
|
|
|
|
|