From 80017fdf15c009026533a397868dfd11f9716228 Mon Sep 17 00:00:00 2001 From: raskad <32105367+raskad@users.noreply.github.com> Date: Sat, 22 Oct 2022 16:27:04 +0000 Subject: [PATCH] Fix error in `Proxy` set implementation (#2369) This Pull Request changes the following: - Fix error in `Proxy` set implementation After this all other failing `Proxy` tests fail because of us missing the `with` implementation. Co-authored-by: RageKnify --- boa_engine/src/object/internal_methods/proxy.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/boa_engine/src/object/internal_methods/proxy.rs b/boa_engine/src/object/internal_methods/proxy.rs index 2fbacd8e9c..b50936c361 100644 --- a/boa_engine/src/object/internal_methods/proxy.rs +++ b/boa_engine/src/object/internal_methods/proxy.rs @@ -686,7 +686,12 @@ pub(crate) fn proxy_exotic_set( if !trap .call( &handler.into(), - &[target.clone().into(), value.clone(), receiver], + &[ + target.clone().into(), + key.clone().into(), + value.clone(), + receiver, + ], context, )? .to_boolean()