Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index ecf1a5724b79ff56937c279065a010feed42d41e..7b0e4d8c63043c6536eb04e47320f69bfd30e687 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -1827,7 +1827,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. |