git.delta.rocks / jrsonnet / refs/commits / 68c8ac05879f

difftreelog

fix(stdlib) std.trace should be lazy

Yaroslav Bolyukin2022-08-05parent: #6eba9c3.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-stdlib/src/lib.rsdiffbeforeafterboth
383 s: State,383 s: State,
384 loc: CallLocation,384 loc: CallLocation,
385 str: IStr,385 str: IStr,
386 rest: Any,386 rest: Thunk<Val>,
387) -> Result<Any> {387) -> Result<Any> {
388 this.settings388 this.settings
389 .borrow()389 .borrow()
390 .trace_printer390 .trace_printer
391 .print_trace(s, loc, str);391 .print_trace(s.clone(), loc, str);
392 Ok(rest) as Result<Any>392 Ok(Any(rest.evaluate(s)?))
393}393}
394394
395#[builtin]395#[builtin]