Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 73ab72c333f1773a83c9581c2e396fcee3c4568f..c995ac83ec512d2595b501757b1e7e8f6cd3d9cb 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -3052,6 +3052,10 @@ void AstGraphBuilder::VisitNot(UnaryOperation* expr) { |
void AstGraphBuilder::VisitComma(BinaryOperation* expr) { |
VisitForEffect(expr->left()); |
Visit(expr->right()); |
+ // Skip plugging AST evaluation contexts of the test kind. This is to stay in |
+ // sync with full codegen which doesn't prepare the proper bailout point (see |
+ // the implementation of FullCodeGenerator::VisitForControl). |
+ if (ast_context()->IsTest()) return; |
ast_context()->ReplaceValue(expr); |
} |