Index: src/ast-numbering.cc |
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc |
index 2a5c5ac654ee6d8bcc802d2c313dd43f6d0b45e7..ce8299888516e0d3bb89f9b7043a083db024fd3e 100644 |
--- a/src/ast-numbering.cc |
+++ b/src/ast-numbering.cc |
@@ -296,6 +296,7 @@ void AstNumberingVisitor::VisitWhileStatement(WhileStatement* node) { |
void AstNumberingVisitor::VisitTryCatchStatement(TryCatchStatement* node) { |
IncrementNodeCount(); |
DisableOptimization(kTryCatchStatement); |
+ node->set_base_id(ReserveIdRange(TryCatchStatement::num_ids())); |
Visit(node->try_block()); |
Visit(node->catch_block()); |
} |
@@ -304,6 +305,7 @@ void AstNumberingVisitor::VisitTryCatchStatement(TryCatchStatement* node) { |
void AstNumberingVisitor::VisitTryFinallyStatement(TryFinallyStatement* node) { |
IncrementNodeCount(); |
DisableOptimization(kTryFinallyStatement); |
+ node->set_base_id(ReserveIdRange(TryFinallyStatement::num_ids())); |
Visit(node->try_block()); |
Visit(node->finally_block()); |
} |