A JavaScript compiler and TypeScript checker written in Rust with a focus on static analysis and runtime performance
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
While
.
access does bind the value ofthis
to the value that is being accessed. Destructuring does notEzno does bind the value of
this
. It currently does not account for this difference during destructuring.Steps to fix:
bind_this
parameter toget_property
inchecker/src/types/properties.rs
false
false
during destructuring cases andtrue
else whereUnfortunately doesn't look like it is documented here