diff --git a/executor/invoker/src/commonMain/kotlin/io/github/charlietap/chasm/executor/invoker/thread/ThreadExecutor.kt b/executor/invoker/src/commonMain/kotlin/io/github/charlietap/chasm/executor/invoker/thread/ThreadExecutor.kt index edee14d3..63d18a4f 100644 --- a/executor/invoker/src/commonMain/kotlin/io/github/charlietap/chasm/executor/invoker/thread/ThreadExecutor.kt +++ b/executor/invoker/src/commonMain/kotlin/io/github/charlietap/chasm/executor/invoker/thread/ThreadExecutor.kt @@ -54,8 +54,7 @@ internal fun ThreadExecutor( try { while (loop) { - val instruction = stack.popInstruction() - instruction(context) + stack.popInstruction()(context) } } catch (exception: InvocationException) { Err(exception.error).bind()