Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index c5a9d232776748d7158919088a14bb76e579d3bf..43d402094539cfae9c31dd3f2f3395888a17db86 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -3845,8 +3845,10 @@ Node* AstGraphBuilder::MakeNode(const Operator* op, int value_input_count, |
// Copy the environment for the success continuation. |
Environment* success_env = environment()->CopyForConditional(); |
const Operator* op = common()->IfException(hint); |
- Node* on_exception = graph()->NewNode(op, result); |
+ Node* effect = environment()->GetEffectDependency(); |
+ Node* on_exception = graph()->NewNode(op, effect, result); |
environment_->UpdateControlDependency(on_exception); |
+ environment_->UpdateEffectDependency(on_exception); |
execution_control()->ThrowValue(on_exception); |
set_environment(success_env); |
} |