diff options
Diffstat (limited to 'tvix/eval')
-rw-r--r-- | tvix/eval/src/compiler.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler.rs b/tvix/eval/src/compiler.rs index 7685e2f08c22..1a4e8df1da4d 100644 --- a/tvix/eval/src/compiler.rs +++ b/tvix/eval/src/compiler.rs @@ -132,7 +132,14 @@ impl Compiler { Ok(()) } - rnix::NixValue::String(_) => todo!(), + // These nodes are yielded by literal URL values. + rnix::NixValue::String(s) => { + // TODO(tazjin): emit deprecation warning + let idx = self.chunk.add_constant(Value::String(s.into())); + self.chunk.add_op(OpCode::OpConstant(idx)); + Ok(()) + } + rnix::NixValue::Path(_, _) => todo!(), } } |