--- a/crates/jrsonnet-stdlib/src/lib.rs +++ b/crates/jrsonnet-stdlib/src/lib.rs @@ -383,13 +383,13 @@ s: State, loc: CallLocation, str: IStr, - rest: Any, + rest: Thunk, ) -> Result { this.settings .borrow() .trace_printer - .print_trace(s, loc, str); - Ok(rest) as Result + .print_trace(s.clone(), loc, str); + Ok(Any(rest.evaluate(s)?)) } #[builtin]