swc/crates/swc_ecma_transforms_compat/tests/block-scoping
Donny/강동윤 6fe6810c49
fix(es/compat): Split declaration and init in block-scoping pass (#8648)
**Description:**

This does not support 

```js
class Foo extends Bar {
    constructor() {
        for (const i of [1]) {
            setTimeout(() => {
                console.log(this)
            });
        }
        super();
    }
}
```

but it does not seem to be used in a real-world code.

**Related issue:**

 - Closes #8300
 - Closes #8311
2024-02-20 09:53:53 +09:00
..
issue-2627/1 refactor(es/resolver): Make syntax context for unresolved and top-level stable (#7096) 2023-03-20 11:01:19 +09:00
issue-3235/1 refactor(es/resolver): Make syntax context for unresolved and top-level stable (#7096) 2023-03-20 11:01:19 +09:00
issue-3347 chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
issue-4225 chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
issue-4238 refactor(es/resolver): Make syntax context for unresolved and top-level stable (#7096) 2023-03-20 11:01:19 +09:00
issue-4286 refactor(es/resolver): Make syntax context for unresolved and top-level stable (#7096) 2023-03-20 11:01:19 +09:00
issue-5048 fix(es/compat): Split declaration and init in block-scoping pass (#8648) 2024-02-20 09:53:53 +09:00
issue-5270 refactor(es/resolver): Make syntax context for unresolved and top-level stable (#7096) 2023-03-20 11:01:19 +09:00
issue-6344/1 refactor(es/resolver): Make syntax context for unresolved and top-level stable (#7096) 2023-03-20 11:01:19 +09:00
issue-6573 refactor(es/resolver): Make syntax context for unresolved and top-level stable (#7096) 2023-03-20 11:01:19 +09:00
issue-6898/1 fix(es/preset-env): Fix pass ordering (#7434) 2023-05-23 07:14:37 +00:00
issue-7418/1 fix(es/compat): Fix destructuring handling of block_scoping (#7425) 2023-05-22 03:21:50 +00:00
issue-7432/1 fix(es/preset-env): Fix pass ordering (#7434) 2023-05-23 07:14:37 +00:00
issue-7989 fix(es/compat): Use async and await correctly in block-scoping pass (#8056) 2023-10-03 06:02:42 +00:00
issue-8148/1 feat(es/preset-env): Update compat data (#8194) 2023-10-30 08:46:24 +00:00