From 7f4f73dd41e10e2bce893fcdfa4f072af9bc6405 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Mon, 20 Oct 2025 09:31:01 -0700 Subject: [PATCH] TRY_CALL recognizes native functions --- src/vm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm.ts b/src/vm.ts index 493723b..0ca7bf9 100644 --- a/src/vm.ts +++ b/src/vm.ts @@ -386,7 +386,7 @@ export class VM { const varName = instruction.operand as string const value = this.scope.get(varName) - if (value?.type === 'function') { + if (value?.type === 'function' || value?.type === 'native') { this.stack.push(value) this.stack.push(toValue(0)) this.stack.push(toValue(0))