swc/ecmascript/transforms/src
kdy1 480015d407 block_scoping: handle variable infection (#610)
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.
2020-01-24 12:29:57 +00:00
..
compat block_scoping: handle variable infection (#610) 2020-01-24 12:29:57 +00:00
debug Add more tests (#489) 2019-12-09 21:02:51 +09:00
helpers Legacy decorator for class and class members (#531) 2019-12-25 19:30:16 +09:00
hygiene hygiene: handle use-use conflict (#599) 2020-01-22 10:43:59 +09:00
modules preset-env (#537) 2019-12-28 11:25:54 +09:00
optimization fix as_bool treating bitor like bitand (#596) 2020-01-20 08:22:52 +09:00
proposals Fix span for patterns with a type annotation (#558) 2020-01-03 14:37:48 +09:00
react Improve hygiene and use JSXAttrValue (#592) 2020-01-17 05:45:33 +00:00
resolver hygiene / block scoping improvement (#608) 2020-01-24 05:54:52 +00:00
compat.rs use 2018 edition syntax (#479) 2019-12-02 17:10:05 +09:00
const_modules.rs Split tests to reduce compile time (#530) 2019-12-24 22:53:48 +09:00
debug.rs use 2018 edition syntax (#479) 2019-12-02 17:10:05 +09:00
fixer.rs preset-env (#537) 2019-12-28 11:25:54 +09:00
helpers.rs Extract utils from swc_ecma_transforms (#575) 2020-01-08 10:55:22 +09:00
hygiene.rs hygiene / block scoping improvement (#608) 2020-01-24 05:54:52 +00:00
lib.rs Extract utils from swc_ecma_transforms (#575) 2020-01-08 10:55:22 +09:00
macros.rs preset-env (#537) 2019-12-28 11:25:54 +09:00
modules.rs Split tests to reduce compile time (#530) 2019-12-24 22:53:48 +09:00
optimization.rs preset-env (#537) 2019-12-28 11:25:54 +09:00
pass.rs Fixes (#283) 2019-02-27 22:40:19 +09:00
proposals.rs Transform for nullish coalescing operator. 2019-12-24 18:01:27 +09:00
quote.rs Extract utils from swc_ecma_transforms (#575) 2020-01-08 10:55:22 +09:00
react.rs use 2018 edition syntax (#479) 2019-12-02 17:10:05 +09:00
resolver.rs hygiene: handle use-use conflict (#599) 2020-01-22 10:43:59 +09:00
scope.rs preset-env (#537) 2019-12-28 11:25:54 +09:00
tests.rs hygiene: handle use-use conflict (#599) 2020-01-22 10:43:59 +09:00
typescript.rs Split tests to reduce compile time (#530) 2019-12-24 22:53:48 +09:00