A JavaScript compiler and TypeScript checker written in Rust with a focus on static analysis and runtime performance
2.44k
stars
45
forks
source link
Record mutated variables / objects that might be mutated by a unknown loop or function call #60
Open
kaleidawave opened 1 year ago
Given something like
This might fail if the function passed as
cb
deletesa
fromobj
.As there is no annotation syntax for marking a function as pure/without side effects (at the moment 👀) the safety isn't known inside the function.
This currently isn't caught in Ezno, so needs fixing.
Instead:
apply_effect
(as it evaluates side effects and is aware of what stage the function is at)