Enrique Pöhlmann

Results 6 comments of Enrique Pöhlmann

@ajafff a little ping 🙈

Thank you for the detailed report! Can confirm the bug ^^

Yes, we need to add a trap to handle the spread assignments!

Hi @SergiiVolodkoWorking Thanks for the detailed issue report! Due to javascript limitations, you need to setup the mock to return false (to make your example work). If we threw everytime...

The only workaround I can think of, is implementing a custom [Symbol.toPrimitive](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toPrimitive) function. That should cast the proxy into `0`, `''` or `null`(or `undefined`?). What do you think @ffMathy ?

Hmm I think it was late last night and I was sleepy 😪 I somehow missed that .toPrimitive only works for some of the unary operators