Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index a61ef84dd65f31847ebebb4df41d08fde34b8941..81d6ac8c0dd3344fce66fce51e773c5944966a13 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -1773,7 +1773,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
EmitUnwindAndReturn(); |
__ bind(&exception); |
- __ CallRuntime(Runtime::kThrow); |
+ __ CallRuntime(expr->rethrow_on_exception() ? Runtime::kReThrow |
+ : Runtime::kThrow); |
__ bind(&suspend); |
OperandStackDepthIncrement(1); // Not popped on this path. |