git.delta.rocks / jrsonnet / refs/commits / 5cb6a6c81855

difftreelog

fix(evaluator) remove meaningless frame on object member creation

Лач2020-07-02parent: #1f06faf.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-evaluator/src/evaluate.rsdiffbeforeafterboth
267 visibility: *visibility,267 visibility: *visibility,
268 invoke: LazyBinding::Bindable(Rc::new(268 invoke: LazyBinding::Bindable(Rc::new(
269 closure!(clone name, clone value, clone context_creator, |this, super_obj| {269 closure!(clone name, clone value, clone context_creator, |this, super_obj| {
270 Ok(LazyVal::new_resolved(push(&value.1, "object field", ||{270 Ok(LazyVal::new_resolved(evaluate(
271 let context = context_creator.0(this, super_obj)?;271 context_creator.0(this, super_obj)?,
272 evaluate(
273 context,
274 &value,272 &value,
275 )
276 })?))273 )?))
277 }),274 }),
278 )),275 )),
279 location: value.1.clone(),276 location: value.1.clone(),