| 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..664417f64f80c0b0a293451b801a3fa19165a2ad 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(IsAsyncFunction(literal()->kind()) ? Runtime::kReThrow
|
| + : Runtime::kThrow);
|
|
|
| __ bind(&suspend);
|
| OperandStackDepthIncrement(1); // Not popped on this path.
|
|
|