Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index 3b50ac8a7712c2b8ab1302373cd7e96be5059b26..704bb80576d0b767e3fb099fcf11d20852409b4d 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -3556,7 +3556,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. |