Index: src/ast/ast.h |
diff --git a/src/ast/ast.h b/src/ast/ast.h |
index b27b7ca0fed67cb922bea46a434d46b886053efd..4dfc1a1a05d04bf3c43687a6628a5d95a2d275d9 100644 |
--- a/src/ast/ast.h |
+++ b/src/ast/ast.h |
@@ -3546,7 +3546,8 @@ class AstNodeFactory final BASE_EMBEDDED { |
} |
} |
- ~BodyScope() { factory_->zone_ = prev_zone_; } |
+ void Reset() { factory_->zone_ = prev_zone_; } |
+ ~BodyScope() { Reset(); } |
private: |
AstNodeFactory* factory_; |