Skip to content

Commit aa9301b

Browse files
committed
feat: Implement the core virtual machine (VM) with opcode dispatch, stack operations, and runtime error handling.
1 parent 5554b3f commit aa9301b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/runtime/vm.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -986,9 +986,7 @@ static InterpretResult run(VM* vm) {
986986
vm->stackTop -= argCount + 1;
987987
push(vm, result);
988988
break;
989-
vm->stackTop -= argCount + 1;
990-
push(vm, result);
991-
break;
989+
992990
} else if (IS_FOREIGN(callee)) {
993991
ObjForeign* foreign = AS_FOREIGN(callee);
994992
Value result = callForeign(foreign, argCount, vm->stackTop - argCount);

0 commit comments

Comments
 (0)