diff options
Diffstat (limited to 'tvix/eval/src/vm.rs')
-rw-r--r-- | tvix/eval/src/vm.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs index ff81349a1531..b6d5a9838c3a 100644 --- a/tvix/eval/src/vm.rs +++ b/tvix/eval/src/vm.rs @@ -358,6 +358,11 @@ impl VM { let callable = self.pop(); match callable { Value::Lambda(lambda) => self.call(lambda, 1), + Value::Builtin(builtin) => { + let arg = self.pop(); + let result = builtin.apply(arg)?; + self.push(result); + } _ => return Err(ErrorKind::NotCallable.into()), }; } |