swc/crates/swc_ecma_transforms_compat/tests
Donny/강동윤 6fe6810c49
fix(es/compat): Split declaration and init in block-scoping pass ()
**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 
 - Closes 
2024-02-20 09:53:53 +09:00
..
__swc_snapshots__/tests fix(es/compat): Split declaration and init in block-scoping pass () 2024-02-20 09:53:53 +09:00
arrow test(ts/compat): Migrate inline tests to fixture testing () 2022-11-28 04:54:38 +00:00
async-to-generator fix(es/compat): Don't add pure annotations to dummy spans () 2023-10-23 15:00:35 -07:00
block-scoping fix(es/compat): Split declaration and init in block-scoping pass () 2024-02-20 09:53:53 +09:00
class_fields_use_set/basic fix(es/compat): Handle useDefineForClassFields: false () 2023-03-12 12:56:10 +09:00
class-properties/issue-7561 fix(es/compat): Handle private names from class properties pass () 2023-11-02 22:18:17 +00:00
classes fix(es/compat): Handle private names from class properties pass () 2023-11-02 22:18:17 +00:00
destructuring fix(es/compat): Set inserted var inside export class in destructing () 2024-01-02 02:09:13 +00:00
for-of test(ts/compat): Migrate inline tests to fixture testing () 2022-11-28 04:54:38 +00:00
new-target fix(es/helpers): Use snake_case for helpers () 2023-03-31 15:15:21 +09:00
object-rest-spread fix(es/compat): Remove wrong logic for object patterns in object_rest () 2023-08-17 04:01:30 +00:00
optional-chaining fix(es/compat): Handle private names from class properties pass () 2023-11-02 22:18:17 +00:00
optional-chaining-loose fix(es/compat): Handle private names from class properties pass () 2023-11-02 22:18:17 +00:00
parameters fix(es/compat): Fix is_setter in parameters pass () 2023-05-02 02:11:42 +00:00
private-in-object fix(es/helpers): Use snake_case for helpers () 2023-03-31 15:15:21 +09:00
shorthand_properties fix(es/compat): Handle __proto__ edge case in shorthand pass () 2023-10-10 04:08:45 +00:00
static-blocks feat(es/compat): Skip empty class static blocks () 2023-10-18 17:58:02 +00:00
class_fields_use_set.rs build(cargo): Update rustc to nightly-2023-03-20 () 2023-03-30 08:06:02 +00:00
es2015_arrow.rs feat(es/testing): Support babel-like fixture testing officially () 2023-10-30 07:24:49 +09:00
es2015_block_scoping.rs refactor(es/ast): Improve type definitions of patterns () 2024-02-05 15:32:52 +09:00
es2015_classes.rs fix(es/compat): Handle private names from class properties pass () 2023-11-02 22:18:17 +00:00
es2015_computed_props.rs feat(es/testing): Use __swc_snapshots__ for test! macro () 2023-10-30 10:38:59 +09:00
es2015_destructuring.rs feat(es/testing): Use __swc_snapshots__ for test! macro () 2023-10-30 10:38:59 +09:00
es2015_duplicated_keys.rs feat(es/testing): Use __swc_snapshots__ for test! macro () 2023-10-30 10:38:59 +09:00
es2015_for_of.rs feat(es/testing): Use __swc_snapshots__ for test! macro () 2023-10-30 10:38:59 +09:00
es2015_generator.rs fix(es/compat): Handle private names from class properties pass () 2023-11-02 22:18:17 +00:00
es2015_new_target.rs fix(es/compat): Handle private names from class properties pass () 2023-11-02 22:18:17 +00:00
es2015_object_super.rs feat(es/testing): Use __swc_snapshots__ for test! macro () 2023-10-30 10:38:59 +09:00
es2015_parameters.rs feat(es/testing): Use __swc_snapshots__ for test! macro () 2023-10-30 10:38:59 +09:00
es2015_shorthand_propertie.rs fix(es/compat): Handle __proto__ edge case in shorthand pass () 2023-10-10 04:08:45 +00:00
es2015_spread.rs feat(es/testing): Use __swc_snapshots__ for test! macro () 2023-10-30 10:38:59 +09:00
es2015_template_literals.rs feat(es/testing): Use __swc_snapshots__ for test! macro () 2023-10-30 10:38:59 +09:00
es2017_async_to_generator.rs fix(es/compat): Handle private names from class properties pass () 2023-11-02 22:18:17 +00:00
es2018_object_rest_spread.rs feat(es/testing): Use __swc_snapshots__ for test! macro () 2023-10-30 10:38:59 +09:00
es2020_nullish_coalescing.rs feat(es/testing): Use __swc_snapshots__ for test! macro () 2023-10-30 10:38:59 +09:00
es2020_optional_chaining.rs fix(es/compat): Handle private names from class properties pass () 2023-11-02 22:18:17 +00:00
es2021_logcal_assignments.rs feat(es/testing): Use __swc_snapshots__ for test! macro () 2023-10-30 10:38:59 +09:00
es2022_class_properties.rs fix(es/compat): Handle private names from class properties pass () 2023-11-02 22:18:17 +00:00
es2022_private_in_object.rs fix(es/compat): Handle private names from class properties pass () 2023-11-02 22:18:17 +00:00
es2022_static_blocks.rs fix(es/compat): Handle private names from class properties pass () 2023-11-02 22:18:17 +00:00