diff --git a/dust-lang/src/vm/thread.rs b/dust-lang/src/vm/thread.rs index 072798b..5c92d20 100644 --- a/dust-lang/src/vm/thread.rs +++ b/dust-lang/src/vm/thread.rs @@ -1352,6 +1352,11 @@ impl Thread { function.call(instruction, &mut self); } + Operation::CALL_NATIVE => { + let function = NativeFunction::from(instruction.b_field()); + + function.call(instruction, &mut self); + } Operation::JUMP => { let offset = instruction.b_field() as usize; let is_positive = instruction.c_field() != 0;