about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
authorRyan Lahfa <tvl@lahfa.xyz>2024-01-14T00·42+0100
committerraitobezarius <tvl@lahfa.xyz>2024-01-17T07·57+0000
commitc2d0e245e23c33aed93f43af0f0c9549718376d9 (patch)
treeda0c8d89ba5ffd21b91924c39223661188680620 /tvix/eval
parentbc8fb825c7e1e933e2b1ace21c305433e0c57522 (diff)
fix(tvix/eval): context-aware… `hasContext` r/7399
Yes, `hasContext e` should work where `e` is a contextful strings, otherwise, it is really useless.

Change-Id: I5eb071fc257217d6e8a63fe519132ebd98186696
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10617
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/builtins/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index 1bca52fd2864..74fc65d36780 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -680,7 +680,7 @@ mod pure_builtins {
             return Ok(e);
         }
 
-        let v = e.to_str()?;
+        let v = e.to_contextful_str()?;
         Ok(Value::Bool(v.has_context()))
     }