diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc index 36e777610c..7b1aff67e2 100644 --- a/src/parsing/parser.cc +++ b/src/parsing/parser.cc @@ -5862,11 +5862,7 @@ ParserTraits::GetReportedErrorList() const { return parser_->function_state_->GetReportedErrorList(); } - -Zone* ParserTraits::zone() const { - return parser_->function_state_->scope()->zone(); -} - +Zone* ParserTraits::zone() const { return parser_->zone(); } class NonPatternRewriter : public AstExpressionRewriter { public: