about summary refs log tree commit diff
path: root/tvix/eval/src/builtins/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/builtins/mod.rs')
-rw-r--r--tvix/eval/src/builtins/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index f08c17904584..0fadb738d529 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -125,8 +125,10 @@ fn pure_builtins() -> Vec<Builtin> {
                 Ok(Value::String(format!("{}", value).into()))
             })
         }),
-        Builtin::new("typeOf", 1, |args, _| {
-            Ok(Value::String(args[0].type_of().into()))
+        Builtin::new("typeOf", 1, |args, vm| {
+            force!(vm, &args[0], value, {
+                Ok(Value::String(value.type_of().into()))
+            })
         }),
     ]
 }