Browse Source

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 <RageKnify@gmail.com>
pull/2367/head
raskad 2 years ago
parent
commit
80017fdf15
  1. 7
      boa_engine/src/object/internal_methods/proxy.rs

7
boa_engine/src/object/internal_methods/proxy.rs

@ -686,7 +686,12 @@ pub(crate) fn proxy_exotic_set(
if !trap if !trap
.call( .call(
&handler.into(), &handler.into(),
&[target.clone().into(), value.clone(), receiver], &[
target.clone().into(),
key.clone().into(),
value.clone(),
receiver,
],
context, context,
)? )?
.to_boolean() .to_boolean()

Loading…
Cancel
Save