about summary refs log tree commit diff
path: root/tvix/eval/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/compiler')
-rw-r--r--tvix/eval/src/compiler/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs
index c64492d54632..7cca7004abde 100644
--- a/tvix/eval/src/compiler/mod.rs
+++ b/tvix/eval/src/compiler/mod.rs
@@ -168,7 +168,9 @@ impl Compiler<'_, '_> {
                 c.compile_select(s, sel.clone())
             }),
 
-            ast::Expr::Assert(assert) => self.compile_assert(slot, assert),
+            ast::Expr::Assert(assert) => {
+                self.thunk(slot, &assert, move |c, a, s| c.compile_assert(s, a.clone()))
+            }
             ast::Expr::IfElse(if_else) => self.compile_if_else(slot, if_else),
             ast::Expr::LetIn(let_in) => self.compile_let_in(slot, let_in),
             ast::Expr::Ident(ident) => self.compile_ident(slot, ident),