mirror of
https://github.com/swc-project/swc.git
synced 2025-01-08 06:52:36 +03:00
480015d407
Handle variable infection in the block scoping pass. i.e. In the code below, v is 'infected' by i. ```js var functions = []; for (let i = 0; i < 10; i++) { let v = i; functions.push(function() { return v; }); } functions[0]() // should print 0 ``` Closes #609. |
||
---|---|---|
.. | ||
benches | ||
scripts | ||
src | ||
tests | ||
Cargo.toml | ||
package.json | ||
yarn.lock |