fix(tvix/eval): context-aware… hasContext

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>
This commit is contained in:
Ryan Lahfa 2024-01-14 01:42:21 +01:00 committed by raitobezarius
parent bc8fb825c7
commit c2d0e245e2

View file

@ -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()))
}