Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index cde26e81bb55605ded824fdf6675bb5717e5f7bd..09168d8cdf2540804112f45dbcd78f04ec7a63c8 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -1738,7 +1738,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. |