From 5cb6a6c8185574c4f22a97f1158d4823d6e4238a Mon Sep 17 00:00:00 2001 From: Лач Date: Thu, 02 Jul 2020 20:40:30 +0000 Subject: [PATCH] fix(evaluator): remove meaningless frame on object member creation --- --- a/crates/jrsonnet-evaluator/src/evaluate.rs +++ b/crates/jrsonnet-evaluator/src/evaluate.rs @@ -267,13 +267,10 @@ visibility: *visibility, invoke: LazyBinding::Bindable(Rc::new( closure!(clone name, clone value, clone context_creator, |this, super_obj| { - Ok(LazyVal::new_resolved(push(&value.1, "object field", ||{ - let context = context_creator.0(this, super_obj)?; - evaluate( - context, - &value, - ) - })?)) + Ok(LazyVal::new_resolved(evaluate( + context_creator.0(this, super_obj)?, + &value, + )?)) }), )), location: value.1.clone(), -- gitstuff