Commit 2f6b26ed authored by verwaest's avatar verwaest Committed by Commit bot

Read zone() directly from parser_ in ParserTraits

BUG=

Review-Url: https://codereview.chromium.org/2225373002
Cr-Commit-Position: refs/heads/master@{#38493}
parent 808981a2
...@@ -5862,11 +5862,7 @@ ParserTraits::GetReportedErrorList() const { ...@@ -5862,11 +5862,7 @@ ParserTraits::GetReportedErrorList() const {
return parser_->function_state_->GetReportedErrorList(); return parser_->function_state_->GetReportedErrorList();
} }
Zone* ParserTraits::zone() const { return parser_->zone(); }
Zone* ParserTraits::zone() const {
return parser_->function_state_->scope()->zone();
}
class NonPatternRewriter : public AstExpressionRewriter { class NonPatternRewriter : public AstExpressionRewriter {
public: public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment