Read zone() directly from parser_ in ParserTraits

BUG=

Review-Url: https://codereview.chromium.org/2225373002
Cr-Commit-Position: refs/heads/master@{#38493}
This commit is contained in:
verwaest 2016-08-09 06:05:10 -07:00 committed by Commit bot
parent 808981a22e
commit 2f6b26ed45

View File

@ -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: