Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index 4d041eb06d0c481ed9a833ec2807005ae194dc1a..0b0fe688d45199adb3741c52ffdaf3a4db1e2416 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -1826,7 +1826,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
EmitUnwindAndReturn(); |
__ bind(&exception); |
- __ CallRuntime(Runtime::kThrow); |
+ __ CallRuntime(IsAsyncFunction(literal()->kind()) ? Runtime::kReThrow |
+ : Runtime::kThrow); |
__ bind(&suspend); |
OperandStackDepthIncrement(1); // Not popped on this path. |