Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 6b21a6fe50009f62dc674e1f3b98af87d6bb44d7..af152ca4c10fadd38a694a00ded182396a24aaa5 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -124,6 +124,7 @@ class DiscardableZoneScope { |
parser_->zone_ = temp_zone; |
if (parser_->reusable_preparser_ != nullptr) { |
parser_->reusable_preparser_->zone_ = temp_zone; |
+ parser_->reusable_preparser_->factory()->set_zone(temp_zone); |
} |
} |
} |
@@ -132,6 +133,7 @@ class DiscardableZoneScope { |
parser_->zone_ = prev_zone_; |
if (parser_->reusable_preparser_ != nullptr) { |
parser_->reusable_preparser_->zone_ = prev_zone_; |
+ parser_->reusable_preparser_->factory()->set_zone(prev_zone_); |
} |
ast_node_factory_scope_.Reset(); |
} |