kaleidawave / ezno

A JavaScript compiler and TypeScript checker written in Rust with a focus on static analysis and runtime performance
https://kaleidawave.github.io/posts/introducing-ezno/
MIT License
2.3k stars 42 forks source link

Add an option NOT to bind the value of `this` to a returned value when getting a property to account for destructuring #98

Closed kaleidawave closed 2 months ago

kaleidawave commented 6 months ago

While . access does bind the value of this to the value that is being accessed. Destructuring does not

image

Ezno does bind the value of this. It currently does not account for this difference during destructuring.

Steps to fix:

Unfortunately doesn't look like it is documented here