about summary refs log tree commit diff
path: root/tvix/eval/src/builtins/mod.rs
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-12-12T12·27-0800
committerclbot <clbot@tvl.fyi>2023-12-12T17·50+0000
commitc5f58d4af3eb47e6474a8793973889eca05f7978 (patch)
tree7dcd40620a07228890c0bc6b7777eb6becba0b2a /tvix/eval/src/builtins/mod.rs
parent2565a21aa9e88465c78634c763c9a34a2332f4f6 (diff)
fix(tvix/eval): baseNameOf: propagate catchables r/7204
Change-Id: Id8dc772ea8f338dfd243210f4108f79072570c3b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10324
Autosubmit: Adam Joseph <adam@westernsemico.com>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/eval/src/builtins/mod.rs')
-rw-r--r--tvix/eval/src/builtins/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index c2618a4066f4..554fc9d7e329 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -135,6 +135,7 @@ mod pure_builtins {
     async fn builtin_base_name_of(co: GenCo, s: Value) -> Result<Value, ErrorKind> {
         let span = generators::request_span(&co).await;
         let s = match s {
+            val @ Value::Catchable(_) => return Ok(val),
             // it is important that builtins.baseNameOf does not
             // coerce paths into strings, since this will turn them
             // into store paths, and `builtins.baseNameOf