From 1921fb3acdf9bc34be240083bd162fe706e552a8 Mon Sep 17 00:00:00 2001 From: Ehren Julien-Neitzert Date: Fri, 17 Mar 2023 16:22:54 -0400 Subject: [PATCH] Add error handling to enterContinuationImpl Fixes #16729 Signed-off-by: Ehren Julien-Neitzert --- runtime/vm/BytecodeInterpreter.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runtime/vm/BytecodeInterpreter.hpp b/runtime/vm/BytecodeInterpreter.hpp index 13eb61c8fc8..16f174cc715 100644 --- a/runtime/vm/BytecodeInterpreter.hpp +++ b/runtime/vm/BytecodeInterpreter.hpp @@ -5248,6 +5248,11 @@ class INTERPRETER_CLASS VMStructHasBeenUpdated(REGISTER_ARGS); + if (immediateAsyncPending()) { + rc = GOTO_ASYNC_CHECK; + } else if (VM_VMHelpers::exceptionPending(_currentThread)) { + rc = GOTO_THROW_CURRENT_EXCEPTION; + } return rc; }