diff --git a/Cargo.lock b/Cargo.lock index c3297ccd6c3d..09040b6f2729 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2056,6 +2056,124 @@ dependencies = [ "cc", ] +[[package]] +name = "icu_collections" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locid" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locid_transform" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locid_transform_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" + +[[package]] +name = "icu_normalizer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "id-arena" version = "2.2.1" @@ -2070,12 +2188,23 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" [[package]] name = "idna" -version = "0.5.0" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" dependencies = [ - "unicode-bidi", - "unicode-normalization", + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", ] [[package]] @@ -2435,6 +2564,12 @@ version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" +[[package]] +name = "litemap" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" + [[package]] name = "litrs" version = "0.4.1" @@ -5993,6 +6128,17 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" +[[package]] +name = "synstructure" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "system-configuration" version = "0.5.1" @@ -6231,6 +6377,16 @@ dependencies = [ "crunchy", ] +[[package]] +name = "tinystr" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" +dependencies = [ + "displaydoc", + "zerovec", +] + [[package]] name = "tinytemplate" version = "1.2.1" @@ -6500,12 +6656,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "unicode-bidi" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" - [[package]] name = "unicode-id" version = "0.3.5" @@ -6581,9 +6731,9 @@ dependencies = [ [[package]] name = "url" -version = "2.5.2" +version = "2.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" dependencies = [ "form_urlencoded", "idna", @@ -6597,6 +6747,18 @@ version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + [[package]] name = "utf8parse" version = "0.2.1" @@ -7541,6 +7703,18 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" + [[package]] name = "wyz" version = "0.5.1" @@ -7607,6 +7781,30 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" +[[package]] +name = "yoke" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", + "synstructure", +] + [[package]] name = "zerocopy" version = "0.7.35" @@ -7628,6 +7826,27 @@ dependencies = [ "syn 2.0.87", ] +[[package]] +name = "zerofrom" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", + "synstructure", +] + [[package]] name = "zeroize" version = "1.8.1" @@ -7648,6 +7867,28 @@ dependencies = [ "syn 2.0.87", ] +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "zip" version = "2.2.0" diff --git a/Cargo.toml b/Cargo.toml index ad9d00b88977..174cccc5a4b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -141,7 +141,7 @@ resolver = "2" unicode-id = "0.3" unicode-id-start = "1.2.0" unicode-width = "0.1.4" - url = "2.4.0" + url = "2.5.4" vergen = { version = "9.0.0", default-features = false } virtual-fs = { version = "0.19.0", default-features = false } walkdir = "2.4.0" diff --git a/crates/swc/tests/fixture/issues-8xxx/8774/output/index.js b/crates/swc/tests/fixture/issues-8xxx/8774/output/index.js index 466a4c70680a..2e7da3d9dca0 100644 --- a/crates/swc/tests/fixture/issues-8xxx/8774/output/index.js +++ b/crates/swc/tests/fixture/issues-8xxx/8774/output/index.js @@ -18,9 +18,7 @@ async function foo() { }; try { const a = _ts_add_disposable_resource._(env, logClean(), false); - ; const b = _ts_add_disposable_resource._(env, logClean(), true); - ; for (const _ of [ logClean(), logClean() diff --git a/crates/swc/tests/fixture/issues-8xxx/8895/output/1.js b/crates/swc/tests/fixture/issues-8xxx/8895/output/1.js index 59bcd3da5aba..262d1f78047e 100644 --- a/crates/swc/tests/fixture/issues-8xxx/8895/output/1.js +++ b/crates/swc/tests/fixture/issues-8xxx/8895/output/1.js @@ -16,7 +16,6 @@ function main() { }; try { const file = _ts_add_disposable_resource._(env, new File(), false); - ; function readFile() { file.read(); } diff --git a/crates/swc/tests/fixture/issues-9xxx/9673/output/1.js b/crates/swc/tests/fixture/issues-9xxx/9673/output/1.js index fe33d67c382b..8ef51d54b57d 100644 --- a/crates/swc/tests/fixture/issues-9xxx/9673/output/1.js +++ b/crates/swc/tests/fixture/issues-9xxx/9673/output/1.js @@ -11,7 +11,6 @@ try { console.log("disposed"); } }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es2015).1.normal.js index 91a893267356..878a0d3695e8 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es2015).1.normal.js @@ -15,7 +15,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; function af() { return _af.apply(this, arguments); } @@ -32,7 +31,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; yield null; } catch (e) { env.error = e; @@ -60,7 +58,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; yield; yield _await_async_generator(null); } catch (e) { @@ -86,7 +83,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -113,7 +109,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; yield null; } catch (e) { env.error = e; @@ -137,7 +132,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; yield; yield _await_async_generator(null); } catch (e) { @@ -162,7 +156,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -185,7 +178,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -207,7 +199,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; break; } catch (e) { env1.error = e; @@ -228,7 +219,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; break; } catch (e) { env2.error = e; @@ -251,7 +241,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; break; } catch (e) { env3.error = e; @@ -273,7 +262,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -293,7 +281,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -313,7 +300,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -334,7 +320,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -354,7 +339,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -375,7 +359,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; break; } catch (e) { env.error = e; @@ -397,7 +380,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; break; } catch (e) { env.error = e; @@ -419,7 +401,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; break; } catch (e) { env.error = e; @@ -441,7 +422,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -462,7 +442,6 @@ try { return _async_to_generator(function*() {})(); } }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es2017).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es2017).1.normal.js index 8459da7c90be..41194e57a613 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es2017).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es2017).1.normal.js @@ -10,7 +10,6 @@ try { const d1 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; async function af() { const env = { stack: [], @@ -21,7 +20,6 @@ try { const d3 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; await null; } catch (e) { env.error = e; @@ -41,7 +39,6 @@ try { const d5 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; yield; await null; } catch (e) { @@ -62,7 +59,6 @@ try { const d6 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -82,7 +78,6 @@ try { const d13 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; await null; } catch (e) { env.error = e; @@ -102,7 +97,6 @@ try { const d15 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; yield; await null; } catch (e) { @@ -124,7 +118,6 @@ try { const d7 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -145,7 +138,6 @@ try { const d19 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -165,7 +157,6 @@ try { const d20 = _ts_add_disposable_resource(env1, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env1.error = e; @@ -184,7 +175,6 @@ try { const d21 = _ts_add_disposable_resource(env2, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env2.error = e; @@ -205,7 +195,6 @@ try { const d22 = _ts_add_disposable_resource(env3, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env3.error = e; @@ -225,7 +214,6 @@ try { const d23 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -243,7 +231,6 @@ try { const d24 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -261,7 +248,6 @@ try { const d25 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -280,7 +266,6 @@ try { const d26 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -298,7 +283,6 @@ try { const d27 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -317,7 +301,6 @@ try { const d28 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env.error = e; @@ -337,7 +320,6 @@ try { const d29 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env.error = e; @@ -357,7 +339,6 @@ try { const d30 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env.error = e; @@ -377,7 +358,6 @@ try { const d31 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -396,7 +376,6 @@ try { const d32 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es2022).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es2022).1.normal.js index 97a366e07e10..705a2ed9dd90 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es2022).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es2022).1.normal.js @@ -10,7 +10,6 @@ try { const d1 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; async function af() { const env = { stack: [], @@ -21,7 +20,6 @@ try { const d3 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; await null; } catch (e) { env.error = e; @@ -41,7 +39,6 @@ try { const d5 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; yield; await null; } catch (e) { @@ -62,7 +59,6 @@ try { const d6 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -82,7 +78,6 @@ try { const d13 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; await null; } catch (e) { env.error = e; @@ -102,7 +97,6 @@ try { const d15 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; yield; await null; } catch (e) { @@ -124,7 +118,6 @@ try { const d7 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -145,7 +138,6 @@ try { const d19 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -165,7 +157,6 @@ try { const d20 = _ts_add_disposable_resource(env1, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env1.error = e; @@ -184,7 +175,6 @@ try { const d21 = _ts_add_disposable_resource(env2, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env2.error = e; @@ -205,7 +195,6 @@ try { const d22 = _ts_add_disposable_resource(env3, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env3.error = e; @@ -225,7 +214,6 @@ try { const d23 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -243,7 +231,6 @@ try { const d24 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -261,7 +248,6 @@ try { const d25 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -280,7 +266,6 @@ try { const d26 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -298,7 +283,6 @@ try { const d27 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -317,7 +301,6 @@ try { const d28 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env.error = e; @@ -337,7 +320,6 @@ try { const d29 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env.error = e; @@ -357,7 +339,6 @@ try { const d30 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env.error = e; @@ -377,7 +358,6 @@ try { const d31 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -396,7 +376,6 @@ try { const d32 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es5).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es5).1.normal.js index d03921b490a9..538d8657379e 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=es5).1.normal.js @@ -28,7 +28,6 @@ try { }); })(); }), true); - ; function _af() { _af = _async_to_generator(function() { var env, d3, e, result; @@ -480,7 +479,6 @@ try { }); })(); }), true); - ; } catch (e) { env1.error = e; env1.hasError = true; @@ -506,7 +504,6 @@ try { }); })(); }), true); - ; break; } catch (e) { env2.error = e; @@ -531,7 +528,6 @@ try { }); })(); }), true); - ; break; } catch (e) { env3.error = e; @@ -558,7 +554,6 @@ try { }); })(); }), true); - ; break; } catch (e) { env4.error = e; @@ -584,7 +579,6 @@ try { }); })(); }), true); - ; } catch (e) { env5.error = e; env5.hasError = true; @@ -608,7 +602,6 @@ try { }); })(); }), true); - ; } catch (e) { env6.error = e; env6.hasError = true; @@ -632,7 +625,6 @@ try { }); })(); }), true); - ; } catch (e) { env7.error = e; env7.hasError = true; @@ -657,7 +649,6 @@ try { }); })(); }), true); - ; } catch (e) { env8.error = e; env8.hasError = true; @@ -681,7 +672,6 @@ try { }); })(); }), true); - ; } catch (e) { env9.error = e; env9.hasError = true; @@ -706,7 +696,6 @@ try { }); })(); }), true); - ; break; } catch (e) { env10.error = e; @@ -732,7 +721,6 @@ try { }); })(); }), true); - ; break; } catch (e) { env11.error = e; @@ -758,7 +746,6 @@ try { }); })(); }), true); - ; break; } catch (e) { env12.error = e; @@ -784,7 +771,6 @@ try { }); })(); }), true); - ; } catch (e) { env13.error = e; env13.hasError = true; @@ -810,7 +796,6 @@ try { }); })(); }), true); - ; } catch (e) { env14.error = e; env14.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=esnext).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=esnext).1.normal.js index 97a366e07e10..705a2ed9dd90 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.1(target=esnext).1.normal.js @@ -10,7 +10,6 @@ try { const d1 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; async function af() { const env = { stack: [], @@ -21,7 +20,6 @@ try { const d3 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; await null; } catch (e) { env.error = e; @@ -41,7 +39,6 @@ try { const d5 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; yield; await null; } catch (e) { @@ -62,7 +59,6 @@ try { const d6 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -82,7 +78,6 @@ try { const d13 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; await null; } catch (e) { env.error = e; @@ -102,7 +97,6 @@ try { const d15 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; yield; await null; } catch (e) { @@ -124,7 +118,6 @@ try { const d7 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -145,7 +138,6 @@ try { const d19 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -165,7 +157,6 @@ try { const d20 = _ts_add_disposable_resource(env1, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env1.error = e; @@ -184,7 +175,6 @@ try { const d21 = _ts_add_disposable_resource(env2, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env2.error = e; @@ -205,7 +195,6 @@ try { const d22 = _ts_add_disposable_resource(env3, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env3.error = e; @@ -225,7 +214,6 @@ try { const d23 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -243,7 +231,6 @@ try { const d24 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -261,7 +248,6 @@ try { const d25 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -280,7 +266,6 @@ try { const d26 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -298,7 +283,6 @@ try { const d27 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -317,7 +301,6 @@ try { const d28 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env.error = e; @@ -337,7 +320,6 @@ try { const d29 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env.error = e; @@ -357,7 +339,6 @@ try { const d30 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; break; } catch (e) { env.error = e; @@ -377,7 +358,6 @@ try { const d31 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; @@ -396,7 +376,6 @@ try { const d32 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.12.1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.12.1.normal.js index 3b80794a6ff2..98e44778ca00 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.12.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.12.1.normal.js @@ -9,7 +9,6 @@ async function f() { }; try { const x = _ts_add_disposable_resource(env, {}, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.13.1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.13.1.normal.js index 6dcad3c80047..7da044937144 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.13.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.13.1.normal.js @@ -8,7 +8,6 @@ const env = { }; try { const x = _ts_add_disposable_resource(env, null, true); - ; function f() { const env = { stack: [], @@ -17,7 +16,6 @@ try { }; try { const x = _ts_add_disposable_resource(env, null, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.15.1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.15.1.normal.js index 1664d32ca7f3..67ee02395ae3 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.15.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.15.1.normal.js @@ -11,7 +11,6 @@ async function f() { const _ = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es2015).1.normal.js index bfb9a6975992..5ef3d3173184 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es2015).1.normal.js @@ -18,7 +18,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources return _async_to_generator(function*() {})(); } }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es2017).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es2017).1.normal.js index 32bcbe39c928..1a725e10ce3b 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es2017).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es2017).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, true), d2 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es2022).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es2022).1.normal.js index 32bcbe39c928..1a725e10ce3b 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es2022).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es2022).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, true), d2 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es5).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es5).1.normal.js index 47fe4479092f..1c7a15526972 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=es5).1.normal.js @@ -28,7 +28,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }); })(); }), true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=esnext).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=esnext).1.normal.js index 32bcbe39c928..1a725e10ce3b 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.2(target=esnext).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, true), d2 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es2015).1.normal.js index f1e8112adea2..cad3a982037b 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es2015).1.normal.js @@ -16,7 +16,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, true), d2 = _ts_add_disposable_resource(env, null, true), d3 = _ts_add_disposable_resource(env, undefined, true), d4 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es2017).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es2017).1.normal.js index 7d8c83eefca5..ac82cf7cb938 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es2017).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es2017).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, true), d2 = _ts_add_disposable_resource(env, null, true), d3 = _ts_add_disposable_resource(env, undefined, true), d4 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es2022).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es2022).1.normal.js index 7d8c83eefca5..ac82cf7cb938 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es2022).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es2022).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, true), d2 = _ts_add_disposable_resource(env, null, true), d3 = _ts_add_disposable_resource(env, undefined, true), d4 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es5).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es5).1.normal.js index c2566fffdae3..5bc153b9216f 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=es5).1.normal.js @@ -20,7 +20,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }); })(); }), true), d2 = _ts_add_disposable_resource(env, null, true), d3 = _ts_add_disposable_resource(env, undefined, true), d4 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=esnext).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=esnext).1.normal.js index 7d8c83eefca5..ac82cf7cb938 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.3(target=esnext).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, true), d2 = _ts_add_disposable_resource(env, null, true), d3 = _ts_add_disposable_resource(env, undefined, true), d4 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarations.9.1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarations.9.1.normal.js index 140cdd32dd4c..b223da4b3abd 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarations.9.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarations.9.1.normal.js @@ -9,7 +9,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }; try { const a = _ts_add_disposable_resource(env, null, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarationsTopLevelOfModule.1(module=es6).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarationsTopLevelOfModule.1(module=es6).1.normal.js index f5ff5c2c96e9..2f4ef5d8e7ab 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarationsTopLevelOfModule.1(module=es6).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarationsTopLevelOfModule.1(module=es6).1.normal.js @@ -10,7 +10,6 @@ try { const z = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; const y = 2; console.log(w, x, y, z); } catch (e) { diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarationsTopLevelOfModule.1(module=system).1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarationsTopLevelOfModule.1(module=system).1.normal.js index 62d1ec798214..1587be02aabd 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarationsTopLevelOfModule.1(module=system).1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarationsTopLevelOfModule.1(module=system).1.normal.js @@ -24,7 +24,6 @@ System.register([ const z = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; const y = 2; console.log(w, x, y, z); } catch (e) { diff --git a/crates/swc/tests/tsc-references/awaitUsingDeclarationsWithImportHelpers.1.normal.js b/crates/swc/tests/tsc-references/awaitUsingDeclarationsWithImportHelpers.1.normal.js index 68c67def3611..19f38d2a456e 100644 --- a/crates/swc/tests/tsc-references/awaitUsingDeclarationsWithImportHelpers.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUsingDeclarationsWithImportHelpers.1.normal.js @@ -9,7 +9,6 @@ async function f() { }; try { const a = _ts_add_disposable_resource(env, null, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.1(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.1(target=es2015).1.normal.js index b5212ff4ec21..df22d370bcee 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.1(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.1(target=es2015).1.normal.js @@ -13,7 +13,6 @@ try { const d1 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; function f() { const env = { stack: [], @@ -24,7 +23,6 @@ try { const d2 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -46,7 +44,6 @@ try { const d3 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield null; } catch (e) { env.error = e; @@ -67,7 +64,6 @@ try { const d4 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; } catch (e) { env.error = e; @@ -90,7 +86,6 @@ try { const d5 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; yield _await_async_generator(null); } catch (e) { @@ -112,7 +107,6 @@ try { const d6 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -131,7 +125,6 @@ try { const d10 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -149,7 +142,6 @@ try { const d11 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; return 0; } catch (e) { env.error = e; @@ -168,7 +160,6 @@ try { const d12 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -187,7 +178,6 @@ try { const d13 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield null; } catch (e) { env.error = e; @@ -207,7 +197,6 @@ try { const d14 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; } catch (e) { env.error = e; @@ -227,7 +216,6 @@ try { const d15 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; yield _await_async_generator(null); } catch (e) { @@ -249,7 +237,6 @@ try { const d7 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -266,7 +253,6 @@ try { const d8 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -285,7 +271,6 @@ try { const d9 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -304,7 +289,6 @@ try { const d16 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; super(); } catch (e) { env.error = e; @@ -325,7 +309,6 @@ try { const d17 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; super(), this.y = 1; } catch (e) { env.error = e; @@ -345,7 +328,6 @@ try { const d18 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -363,7 +345,6 @@ try { const d19 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -382,7 +363,6 @@ try { const d20 = _ts_add_disposable_resource(env1, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env1.error = e; @@ -400,7 +380,6 @@ try { const d21 = _ts_add_disposable_resource(env2, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env2.error = e; @@ -420,7 +399,6 @@ try { const d22 = _ts_add_disposable_resource(env3, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env3.error = e; @@ -439,7 +417,6 @@ try { const d23 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -456,7 +433,6 @@ try { const d24 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -473,7 +449,6 @@ try { const d25 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -491,7 +466,6 @@ try { const d26 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -508,7 +482,6 @@ try { const d27 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -526,7 +499,6 @@ try { const d28 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env.error = e; @@ -545,7 +517,6 @@ try { const d29 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env.error = e; @@ -564,7 +535,6 @@ try { const d30 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env.error = e; @@ -583,7 +553,6 @@ try { const d31 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -601,7 +570,6 @@ try { const d32 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.1(target=es2017).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.1(target=es2017).1.normal.js index 6aab606dac7d..7c8abed4ec60 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.1(target=es2017).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.1(target=es2017).1.normal.js @@ -10,7 +10,6 @@ try { const d1 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; function f() { const env = { stack: [], @@ -21,7 +20,6 @@ try { const d2 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -39,7 +37,6 @@ try { const d3 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; await null; } catch (e) { env.error = e; @@ -58,7 +55,6 @@ try { const d4 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; } catch (e) { env.error = e; @@ -77,7 +73,6 @@ try { const d5 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; await null; } catch (e) { @@ -97,7 +92,6 @@ try { const d6 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -116,7 +110,6 @@ try { const d10 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -134,7 +127,6 @@ try { const d11 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; return 0; } catch (e) { env.error = e; @@ -153,7 +145,6 @@ try { const d12 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -171,7 +162,6 @@ try { const d13 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; await null; } catch (e) { env.error = e; @@ -190,7 +180,6 @@ try { const d14 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; } catch (e) { env.error = e; @@ -209,7 +198,6 @@ try { const d15 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; await null; } catch (e) { @@ -230,7 +218,6 @@ try { const d7 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -247,7 +234,6 @@ try { const d8 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -266,7 +252,6 @@ try { const d9 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -285,7 +270,6 @@ try { const d16 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; super(); } catch (e) { env.error = e; @@ -306,7 +290,6 @@ try { const d17 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; super(), this.y = 1; } catch (e) { env.error = e; @@ -326,7 +309,6 @@ try { const d18 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -344,7 +326,6 @@ try { const d19 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -363,7 +344,6 @@ try { const d20 = _ts_add_disposable_resource(env1, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env1.error = e; @@ -381,7 +361,6 @@ try { const d21 = _ts_add_disposable_resource(env2, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env2.error = e; @@ -401,7 +380,6 @@ try { const d22 = _ts_add_disposable_resource(env3, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env3.error = e; @@ -420,7 +398,6 @@ try { const d23 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -437,7 +414,6 @@ try { const d24 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -454,7 +430,6 @@ try { const d25 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -472,7 +447,6 @@ try { const d26 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -489,7 +463,6 @@ try { const d27 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -507,7 +480,6 @@ try { const d28 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env.error = e; @@ -526,7 +498,6 @@ try { const d29 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env.error = e; @@ -545,7 +516,6 @@ try { const d30 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env.error = e; @@ -564,7 +534,6 @@ try { const d31 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -582,7 +551,6 @@ try { const d32 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.1(target=es2022).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.1(target=es2022).1.normal.js index 1049e1a225fa..320bd979e618 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.1(target=es2022).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.1(target=es2022).1.normal.js @@ -10,7 +10,6 @@ try { const d1 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; function f() { const env = { stack: [], @@ -21,7 +20,6 @@ try { const d2 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -39,7 +37,6 @@ try { const d3 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; await null; } catch (e) { env.error = e; @@ -58,7 +55,6 @@ try { const d4 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; } catch (e) { env.error = e; @@ -77,7 +73,6 @@ try { const d5 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; await null; } catch (e) { @@ -97,7 +92,6 @@ try { const d6 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -117,7 +111,6 @@ try { const d7 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -134,7 +127,6 @@ try { const d8 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -152,7 +144,6 @@ try { const d9 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -170,7 +161,6 @@ try { const d10 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -188,7 +178,6 @@ try { const d11 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; return 0; } catch (e) { env.error = e; @@ -207,7 +196,6 @@ try { const d12 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -225,7 +213,6 @@ try { const d13 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; await null; } catch (e) { env.error = e; @@ -244,7 +231,6 @@ try { const d14 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; } catch (e) { env.error = e; @@ -263,7 +249,6 @@ try { const d15 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; await null; } catch (e) { @@ -285,7 +270,6 @@ try { const d16 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; super(); } catch (e) { env.error = e; @@ -306,7 +290,6 @@ try { const d17 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; super(), this.y = 1; } catch (e) { env.error = e; @@ -326,7 +309,6 @@ try { const d18 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -344,7 +326,6 @@ try { const d19 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -363,7 +344,6 @@ try { const d20 = _ts_add_disposable_resource(env1, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env1.error = e; @@ -381,7 +361,6 @@ try { const d21 = _ts_add_disposable_resource(env2, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env2.error = e; @@ -401,7 +380,6 @@ try { const d22 = _ts_add_disposable_resource(env3, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env3.error = e; @@ -420,7 +398,6 @@ try { const d23 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -437,7 +414,6 @@ try { const d24 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -454,7 +430,6 @@ try { const d25 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -472,7 +447,6 @@ try { const d26 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -489,7 +463,6 @@ try { const d27 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -507,7 +480,6 @@ try { const d28 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env.error = e; @@ -526,7 +498,6 @@ try { const d29 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env.error = e; @@ -545,7 +516,6 @@ try { const d30 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env.error = e; @@ -564,7 +534,6 @@ try { const d31 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -582,7 +551,6 @@ try { const d32 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.1(target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.1(target=es5).1.normal.js index 5708bd40ca7b..7d43cfcb1a3c 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.1(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.1(target=es5).1.normal.js @@ -25,7 +25,6 @@ try { }; try { var d2 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -88,7 +87,6 @@ try { return _ag.apply(this, arguments); }; var d1 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; function _af() { _af = _async_to_generator(function() { var env, d3, e; @@ -206,7 +204,6 @@ try { }; try { var d6 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -226,7 +223,6 @@ try { }; try { var d7 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -241,7 +237,6 @@ try { }; try { var d8 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -258,7 +253,6 @@ try { }; try { var d10 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -432,7 +426,6 @@ try { }; try { var d11 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; return 0; } catch (e) { env.error = e; @@ -449,7 +442,6 @@ try { }; try { var d12 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -469,7 +461,6 @@ try { }; try { var d9 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -490,7 +481,6 @@ try { }; try { var d16 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; _this = _call_super(this, C2); } catch (e) { env.error = e; @@ -515,7 +505,6 @@ try { }; try { var d17 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; _this = _call_super(this, C3), _this.y = 1; } catch (e) { env.error = e; @@ -535,7 +524,6 @@ try { }; try { var d18 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -551,7 +539,6 @@ try { }; try { var d19 = _ts_add_disposable_resource(env1, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env1.error = e; env1.hasError = true; @@ -568,7 +555,6 @@ try { }; try { var d20 = _ts_add_disposable_resource(env2, _define_property({}, Symbol.dispose, function() {}), false); - ; break; } catch (e) { env2.error = e; @@ -584,7 +570,6 @@ try { }; try { var d21 = _ts_add_disposable_resource(env3, _define_property({}, Symbol.dispose, function() {}), false); - ; break; } catch (e) { env3.error = e; @@ -602,7 +587,6 @@ try { }; try { var d22 = _ts_add_disposable_resource(env4, _define_property({}, Symbol.dispose, function() {}), false); - ; break; } catch (e) { env4.error = e; @@ -619,7 +603,6 @@ try { }; try { var d23 = _ts_add_disposable_resource(env5, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env5.error = e; env5.hasError = true; @@ -634,7 +617,6 @@ try { }; try { var d24 = _ts_add_disposable_resource(env6, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env6.error = e; env6.hasError = true; @@ -649,7 +631,6 @@ try { }; try { var d25 = _ts_add_disposable_resource(env7, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env7.error = e; env7.hasError = true; @@ -665,7 +646,6 @@ try { }; try { var d26 = _ts_add_disposable_resource(env8, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env8.error = e; env8.hasError = true; @@ -680,7 +660,6 @@ try { }; try { var d27 = _ts_add_disposable_resource(env9, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env9.error = e; env9.hasError = true; @@ -696,7 +675,6 @@ try { }; try { var d28 = _ts_add_disposable_resource(env10, _define_property({}, Symbol.dispose, function() {}), false); - ; break; } catch (e) { env10.error = e; @@ -713,7 +691,6 @@ try { }; try { var d29 = _ts_add_disposable_resource(env11, _define_property({}, Symbol.dispose, function() {}), false); - ; break; } catch (e) { env11.error = e; @@ -730,7 +707,6 @@ try { }; try { var d30 = _ts_add_disposable_resource(env12, _define_property({}, Symbol.dispose, function() {}), false); - ; break; } catch (e) { env12.error = e; @@ -747,7 +723,6 @@ try { }; try { var d31 = _ts_add_disposable_resource(env13, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env13.error = e; env13.hasError = true; @@ -764,7 +739,6 @@ try { }; try { var d32 = _ts_add_disposable_resource(env14, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env14.error = e; env14.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.1(target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.1(target=esnext).1.normal.js index 1049e1a225fa..320bd979e618 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.1(target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.1(target=esnext).1.normal.js @@ -10,7 +10,6 @@ try { const d1 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; function f() { const env = { stack: [], @@ -21,7 +20,6 @@ try { const d2 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -39,7 +37,6 @@ try { const d3 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; await null; } catch (e) { env.error = e; @@ -58,7 +55,6 @@ try { const d4 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; } catch (e) { env.error = e; @@ -77,7 +73,6 @@ try { const d5 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; await null; } catch (e) { @@ -97,7 +92,6 @@ try { const d6 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -117,7 +111,6 @@ try { const d7 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -134,7 +127,6 @@ try { const d8 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -152,7 +144,6 @@ try { const d9 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -170,7 +161,6 @@ try { const d10 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -188,7 +178,6 @@ try { const d11 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; return 0; } catch (e) { env.error = e; @@ -207,7 +196,6 @@ try { const d12 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -225,7 +213,6 @@ try { const d13 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; await null; } catch (e) { env.error = e; @@ -244,7 +231,6 @@ try { const d14 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; } catch (e) { env.error = e; @@ -263,7 +249,6 @@ try { const d15 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; yield; await null; } catch (e) { @@ -285,7 +270,6 @@ try { const d16 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; super(); } catch (e) { env.error = e; @@ -306,7 +290,6 @@ try { const d17 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; super(), this.y = 1; } catch (e) { env.error = e; @@ -326,7 +309,6 @@ try { const d18 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -344,7 +326,6 @@ try { const d19 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -363,7 +344,6 @@ try { const d20 = _ts_add_disposable_resource(env1, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env1.error = e; @@ -381,7 +361,6 @@ try { const d21 = _ts_add_disposable_resource(env2, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env2.error = e; @@ -401,7 +380,6 @@ try { const d22 = _ts_add_disposable_resource(env3, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env3.error = e; @@ -420,7 +398,6 @@ try { const d23 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -437,7 +414,6 @@ try { const d24 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -454,7 +430,6 @@ try { const d25 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -472,7 +447,6 @@ try { const d26 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -489,7 +463,6 @@ try { const d27 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -507,7 +480,6 @@ try { const d28 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env.error = e; @@ -526,7 +498,6 @@ try { const d29 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env.error = e; @@ -545,7 +516,6 @@ try { const d30 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; break; } catch (e) { env.error = e; @@ -564,7 +534,6 @@ try { const d31 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -582,7 +551,6 @@ try { const d32 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.11.1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.11.1.normal.js index 2160e848a92a..001ed3ad99e0 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.11.1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.11.1.normal.js @@ -22,7 +22,6 @@ var C1 = /*#__PURE__*/ function(A) { }; try { var x = _ts_add_disposable_resource(env, null, false); - ; _this = _call_super(this, C1); } catch (e) { env.error = e; @@ -48,7 +47,6 @@ var C2 = /*#__PURE__*/ function(A) { try { _this = _call_super(this, C2); var x = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; @@ -72,7 +70,6 @@ var C3 = /*#__PURE__*/ function(A) { }; try { var x = _ts_add_disposable_resource(env, null, false); - ; _this = _call_super(this, C3), _this.y = 1; } catch (e) { env.error = e; @@ -97,7 +94,6 @@ var C4 = /*#__PURE__*/ function(A) { }; try { var x = _ts_add_disposable_resource(env, null, false); - ; _this = _call_super(this, C4), _this.y = y; } catch (e) { env.error = e; @@ -122,7 +118,6 @@ var C5 = /*#__PURE__*/ function(A) { }; try { var x = _ts_add_disposable_resource(env, null, false); - ; _this = _call_super(this, C5), _this.y = y, _this.z = 1; } catch (e) { env.error = e; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.12.1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.12.1.normal.js index 2788c140dafc..aeb1709ee931 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.12.1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.12.1.normal.js @@ -16,7 +16,6 @@ class C2 extends C1 { const d17 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.14.1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.14.1.normal.js index 4e7b11b07e03..238248ce9f4d 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.14.1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.14.1.normal.js @@ -8,7 +8,6 @@ const env = { }; try { const x = _ts_add_disposable_resource(env, {}, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.15.1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.15.1.normal.js index 93f4253be5f9..24011570abec 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.15.1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.15.1.normal.js @@ -10,7 +10,6 @@ try { const _ = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.2(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.2(target=es2015).1.normal.js index ae0af1f91290..1a1b904c714e 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.2(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.2(target=es2015).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, false), d2 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.2(target=es2017).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.2(target=es2017).1.normal.js index ae0af1f91290..1a1b904c714e 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.2(target=es2017).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.2(target=es2017).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, false), d2 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.2(target=es2022).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.2(target=es2022).1.normal.js index ae0af1f91290..1a1b904c714e 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.2(target=es2022).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.2(target=es2022).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, false), d2 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.2(target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.2(target=es5).1.normal.js index 3bea4a2099fa..2e814f8c18f1 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.2(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.2(target=es5).1.normal.js @@ -10,7 +10,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }; try { var d1 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false), d2 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.2(target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.2(target=esnext).1.normal.js index ae0af1f91290..1a1b904c714e 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.2(target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.2(target=esnext).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, false), d2 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.3(target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.3(target=es2015).1.normal.js index 9f69daed7869..866e1fa0c234 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.3(target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.3(target=es2015).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, false), d2 = _ts_add_disposable_resource(env, null, false), d3 = _ts_add_disposable_resource(env, undefined, false), d4 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.3(target=es2017).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.3(target=es2017).1.normal.js index 9f69daed7869..866e1fa0c234 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.3(target=es2017).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.3(target=es2017).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, false), d2 = _ts_add_disposable_resource(env, null, false), d3 = _ts_add_disposable_resource(env, undefined, false), d4 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.3(target=es2022).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.3(target=es2022).1.normal.js index 9f69daed7869..866e1fa0c234 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.3(target=es2022).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.3(target=es2022).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, false), d2 = _ts_add_disposable_resource(env, null, false), d3 = _ts_add_disposable_resource(env, undefined, false), d4 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.3(target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.3(target=es5).1.normal.js index 89943e3d2a48..304dc2290cec 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.3(target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.3(target=es5).1.normal.js @@ -10,7 +10,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }; try { var d1 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false), d2 = _ts_add_disposable_resource(env, null, false), d3 = _ts_add_disposable_resource(env, undefined, false), d4 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.3(target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.3(target=esnext).1.normal.js index 9f69daed7869..866e1fa0c234 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.3(target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.3(target=esnext).1.normal.js @@ -13,7 +13,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }, false), d2 = _ts_add_disposable_resource(env, null, false), d3 = _ts_add_disposable_resource(env, undefined, false), d4 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarations.9.1.normal.js b/crates/swc/tests/tsc-references/usingDeclarations.9.1.normal.js index 840d829b0d82..d11a96daccb8 100644 --- a/crates/swc/tests/tsc-references/usingDeclarations.9.1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarations.9.1.normal.js @@ -9,7 +9,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }; try { const a = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsDeclarationEmit.1.1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsDeclarationEmit.1.1.normal.js index 546c52329eae..f4a43de7ad08 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsDeclarationEmit.1.1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsDeclarationEmit.1.1.normal.js @@ -10,11 +10,9 @@ try { const r1 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; const r2 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsDeclarationEmit.2.1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsDeclarationEmit.2.1.normal.js index 5aceedc120b4..26a8a90f64cd 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsDeclarationEmit.2.1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsDeclarationEmit.2.1.normal.js @@ -10,11 +10,9 @@ try { const r1 = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; const r2 = _ts_add_disposable_resource(env, { async [Symbol.asyncDispose] () {} }, true); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=amd).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=amd).1.normal.js index 495a34482de1..bc4e034dd79f 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=amd).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=amd).1.normal.js @@ -38,7 +38,6 @@ define([ const z = _ts_add_disposable_resource._(env, { [Symbol.dispose] () {} }, false); - ; const y = 2; console.log(w, x, y, z); } catch (e) { diff --git a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=commonjs).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=commonjs).1.normal.js index af24bc227bf0..0e313b09166e 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=commonjs).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=commonjs).1.normal.js @@ -34,7 +34,6 @@ try { const z = _ts_add_disposable_resource._(env, { [Symbol.dispose] () {} }, false); - ; const y = 2; console.log(w, x, y, z); } catch (e) { diff --git a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=es6).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=es6).1.normal.js index 2d597b140453..47bca86b9dc0 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=es6).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=es6).1.normal.js @@ -10,7 +10,6 @@ try { const z = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; const y = 2; console.log(w, x, y, z); } catch (e) { diff --git a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=system).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=system).1.normal.js index 3d9fbfd96ce0..833c45a33903 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=system).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=system).1.normal.js @@ -24,7 +24,6 @@ System.register([ const z = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; const y = 2; console.log(w, x, y, z); } catch (e) { diff --git a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.2(module=amd).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.2(module=amd).1.normal.js index b8f522ed6daa..12a012a3d48e 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.2(module=amd).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.2(module=amd).1.normal.js @@ -14,7 +14,6 @@ define([ const z = _ts_add_disposable_resource._(env, { [Symbol.dispose] () {} }, false); - ; const y = 2; console.log(y, z); } catch (e) { diff --git a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.2(module=commonjs).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.2(module=commonjs).1.normal.js index da18f285c7ae..ff6b4530a0a1 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.2(module=commonjs).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.2(module=commonjs).1.normal.js @@ -11,7 +11,6 @@ try { const z = _ts_add_disposable_resource._(env, { [Symbol.dispose] () {} }, false); - ; const y = 2; console.log(y, z); } catch (e) { diff --git a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=amd).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=amd).1.normal.js index a9b1fc73027c..7a855c1e3342 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=amd).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=amd).1.normal.js @@ -24,7 +24,6 @@ define([ const z = _ts_add_disposable_resource._(env, { [Symbol.dispose] () {} }, false); - ; if (false) { var y = 1; } diff --git a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=commonjs).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=commonjs).1.normal.js index 434f2f8aac83..50301d250798 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=commonjs).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=commonjs).1.normal.js @@ -20,7 +20,6 @@ try { const z = _ts_add_disposable_resource._(env, { [Symbol.dispose] () {} }, false); - ; if (false) { var y = 1; } diff --git a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=es6).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=es6).1.normal.js index daff034dd099..22d8e0ab2fe8 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=es6).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=es6).1.normal.js @@ -10,7 +10,6 @@ try { const z = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; if (false) { var y = 1; } diff --git a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=system).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=system).1.normal.js index 20f0808487ad..a1a6f4a5e6a0 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=system).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.3(module=system).1.normal.js @@ -24,7 +24,6 @@ System.register([ const z = _ts_add_disposable_resource(env, { [Symbol.dispose] () {} }, false); - ; if (false) { var y = 1; } diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithImportHelpers.1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithImportHelpers.1.normal.js index 38cb244828a7..5f804244012f 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithImportHelpers.1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithImportHelpers.1.normal.js @@ -9,7 +9,6 @@ import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources }; try { const a = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es2015).1.normal.js index e33064934ada..cb45b71970ba 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es2015).1.normal.js @@ -13,7 +13,6 @@ const env = { }; try { const before = _ts_add_disposable_resource._(env, null, false); - ; class C { } C = _ts_decorate._([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es5).1.normal.js index 42f9463765cb..c0575c143aab 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es5).1.normal.js @@ -14,7 +14,6 @@ var env = { }; try { var before = _ts_add_disposable_resource._(env, null, false); - ; var C = function C() { "use strict"; _class_call_check._(this, C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=esnext).1.normal.js index e33064934ada..cb45b71970ba 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=esnext).1.normal.js @@ -13,7 +13,6 @@ const env = { }; try { const before = _ts_add_disposable_resource._(env, null, false); - ; class C { } C = _ts_decorate._([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=es6,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=es6,target=es2015).1.normal.js index 103447b3b116..e0642b62d185 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=es6,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=es6,target=es2015).1.normal.js @@ -9,7 +9,6 @@ const env = { }; try { const before = _ts_add_disposable_resource(env, null, false); - ; class C { } C = _ts_decorate([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=es6,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=es6,target=es5).1.normal.js index 4b4e049a856b..098828ffe719 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=es6,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=es6,target=es5).1.normal.js @@ -10,7 +10,6 @@ var env = { }; try { var before = _ts_add_disposable_resource(env, null, false); - ; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=es6,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=es6,target=esnext).1.normal.js index 103447b3b116..e0642b62d185 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=es6,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=es6,target=esnext).1.normal.js @@ -9,7 +9,6 @@ const env = { }; try { const before = _ts_add_disposable_resource(env, null, false); - ; class C { } C = _ts_decorate([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es2015).1.normal.js index 2e64f31fff5b..9cdb063cec33 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es2015).1.normal.js @@ -26,7 +26,6 @@ System.register([ }; try { const before = _ts_add_disposable_resource(env, null, false); - ; class C { } C = _ts_decorate([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es5).1.normal.js index 1136121e67e8..b3861c2f1db2 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=es5).1.normal.js @@ -30,7 +30,6 @@ System.register([ }; try { var before = _ts_add_disposable_resource(env, null, false); - ; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=esnext).1.normal.js index 2e64f31fff5b..9cdb063cec33 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.1(module=system,target=esnext).1.normal.js @@ -26,7 +26,6 @@ System.register([ }; try { const before = _ts_add_disposable_resource(env, null, false); - ; class C { } C = _ts_decorate([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es2015).1.normal.js index 10755716d80f..99df3561a42e 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es2015).1.normal.js @@ -22,7 +22,6 @@ try { dec ], _class); const after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es5).1.normal.js index 87f8c28c399e..21a66c1f468a 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es5).1.normal.js @@ -23,7 +23,6 @@ try { dec ], _class); var after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=esnext).1.normal.js index 10755716d80f..99df3561a42e 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=esnext).1.normal.js @@ -22,7 +22,6 @@ try { dec ], _class); const after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=es6,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=es6,target=es2015).1.normal.js index dfde64ae774f..a70480b3b0d2 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=es6,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=es6,target=es2015).1.normal.js @@ -12,7 +12,6 @@ try { dec ], _class); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=es6,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=es6,target=es5).1.normal.js index e1a0daf8935d..26d2aac9ef45 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=es6,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=es6,target=es5).1.normal.js @@ -13,7 +13,6 @@ try { dec ], _class); var after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=es6,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=es6,target=esnext).1.normal.js index dfde64ae774f..a70480b3b0d2 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=es6,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=es6,target=esnext).1.normal.js @@ -12,7 +12,6 @@ try { dec ], _class); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es2015).1.normal.js index 319b32d3255f..7f3eb36a197b 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es2015).1.normal.js @@ -30,7 +30,6 @@ System.register([ dec ], _class)); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es5).1.normal.js index 92cefe943cdf..f627e11efb2d 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=es5).1.normal.js @@ -33,7 +33,6 @@ System.register([ dec ], _class)); var after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=esnext).1.normal.js index 319b32d3255f..7f3eb36a197b 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.10(module=system,target=esnext).1.normal.js @@ -30,7 +30,6 @@ System.register([ dec ], _class)); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es2015).1.normal.js index c66eda070692..d50c0a11d914 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es2015).1.normal.js @@ -24,7 +24,6 @@ try { dec ], C); const after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es5).1.normal.js index dbff83853f06..b100f3aaf51b 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es5).1.normal.js @@ -27,7 +27,6 @@ try { dec ], C); var after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=esnext).1.normal.js index c66eda070692..d50c0a11d914 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=esnext).1.normal.js @@ -24,7 +24,6 @@ try { dec ], C); const after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=es6,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=es6,target=es2015).1.normal.js index 124c0cf27de5..3e381c01d090 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=es6,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=es6,target=es2015).1.normal.js @@ -14,7 +14,6 @@ try { dec ], C); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=es6,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=es6,target=es5).1.normal.js index 5954c738ab91..ac5cb5e6502b 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=es6,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=es6,target=es5).1.normal.js @@ -17,7 +17,6 @@ try { dec ], C); var after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=es6,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=es6,target=esnext).1.normal.js index 124c0cf27de5..3e381c01d090 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=es6,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=es6,target=esnext).1.normal.js @@ -14,7 +14,6 @@ try { dec ], C); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es2015).1.normal.js index 0894c042773b..86550cb1e1a9 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es2015).1.normal.js @@ -31,7 +31,6 @@ System.register([ dec ], C)); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es5).1.normal.js index d54b7909ea57..e0d92f51c237 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=es5).1.normal.js @@ -37,7 +37,6 @@ System.register([ dec ], C)); var after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=esnext).1.normal.js index 0894c042773b..86550cb1e1a9 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.11(module=system,target=esnext).1.normal.js @@ -31,7 +31,6 @@ System.register([ dec ], C)); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es2015).1.normal.js index 9cc3cb5d8491..5881c8fac501 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es2015).1.normal.js @@ -24,7 +24,6 @@ try { dec ], C); const after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es5).1.normal.js index 7d49b036b632..6b1122823d98 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es5).1.normal.js @@ -27,7 +27,6 @@ try { dec ], C); var after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=esnext).1.normal.js index 9cc3cb5d8491..5881c8fac501 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=esnext).1.normal.js @@ -24,7 +24,6 @@ try { dec ], C); const after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=es6,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=es6,target=es2015).1.normal.js index 578505e0f5f9..d18b669db0ec 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=es6,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=es6,target=es2015).1.normal.js @@ -14,7 +14,6 @@ try { dec ], C); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=es6,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=es6,target=es5).1.normal.js index 27b1b070d680..c92a24a356d3 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=es6,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=es6,target=es5).1.normal.js @@ -17,7 +17,6 @@ try { dec ], C); var after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=es6,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=es6,target=esnext).1.normal.js index 578505e0f5f9..d18b669db0ec 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=es6,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=es6,target=esnext).1.normal.js @@ -14,7 +14,6 @@ try { dec ], C); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es2015).1.normal.js index 1437a8eb3c8b..d0c33acaa5f4 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es2015).1.normal.js @@ -31,7 +31,6 @@ System.register([ dec ], C)); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es5).1.normal.js index ac0e73d08ecb..1f9499241ea7 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=es5).1.normal.js @@ -37,7 +37,6 @@ System.register([ dec ], C)); var after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=esnext).1.normal.js index 1437a8eb3c8b..d0c33acaa5f4 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.12(module=system,target=esnext).1.normal.js @@ -31,7 +31,6 @@ System.register([ dec ], C)); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es2015).1.normal.js index 43713dfa3a07..255c8f79af6d 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es2015).1.normal.js @@ -19,7 +19,6 @@ const env = { }; try { const before = _ts_add_disposable_resource._(env, null, false); - ; C = _ts_decorate._([ dec ], C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es5).1.normal.js index 88df8ee9c0d6..65092b955fa3 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es5).1.normal.js @@ -20,7 +20,6 @@ var env = { }; try { var before = _ts_add_disposable_resource._(env, null, false); - ; C = _ts_decorate._([ dec ], C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=esnext).1.normal.js index 43713dfa3a07..255c8f79af6d 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=esnext).1.normal.js @@ -19,7 +19,6 @@ const env = { }; try { const before = _ts_add_disposable_resource._(env, null, false); - ; C = _ts_decorate._([ dec ], C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=es6,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=es6,target=es2015).1.normal.js index 39f330f52a6d..1cc28e4e00f8 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=es6,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=es6,target=es2015).1.normal.js @@ -9,7 +9,6 @@ const env = { }; try { const before = _ts_add_disposable_resource(env, null, false); - ; C = _ts_decorate([ dec ], C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=es6,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=es6,target=es5).1.normal.js index 86be885cd6e8..8403deb8bf71 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=es6,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=es6,target=es5).1.normal.js @@ -10,7 +10,6 @@ var env = { }; try { var before = _ts_add_disposable_resource(env, null, false); - ; C = _ts_decorate([ dec ], C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=es6,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=es6,target=esnext).1.normal.js index 39f330f52a6d..1cc28e4e00f8 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=es6,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=es6,target=esnext).1.normal.js @@ -9,7 +9,6 @@ const env = { }; try { const before = _ts_add_disposable_resource(env, null, false); - ; C = _ts_decorate([ dec ], C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es2015).1.normal.js index e0484281fc0b..1bb4f58e244c 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es2015).1.normal.js @@ -27,7 +27,6 @@ System.register([ }; try { const before = _ts_add_disposable_resource(env, null, false); - ; _export("C", C = _ts_decorate([ dec ], C)); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es5).1.normal.js index 0f0e716304e0..d00734167349 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=es5).1.normal.js @@ -30,7 +30,6 @@ System.register([ }; try { var before = _ts_add_disposable_resource(env, null, false); - ; _export("C", C = _ts_decorate([ dec ], C)); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=esnext).1.normal.js index e0484281fc0b..1bb4f58e244c 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.2(module=system,target=esnext).1.normal.js @@ -27,7 +27,6 @@ System.register([ }; try { const before = _ts_add_disposable_resource(env, null, false); - ; _export("C", C = _ts_decorate([ dec ], C)); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es2015).1.normal.js index c60cc03d9c35..c84c05608c12 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es2015).1.normal.js @@ -19,7 +19,6 @@ const env = { }; try { const before = _ts_add_disposable_resource._(env, null, false); - ; C = _ts_decorate._([ dec ], C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es5).1.normal.js index df7d2487d5ff..0139689c4086 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es5).1.normal.js @@ -20,7 +20,6 @@ var env = { }; try { var before = _ts_add_disposable_resource._(env, null, false); - ; C = _ts_decorate._([ dec ], C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=esnext).1.normal.js index c60cc03d9c35..c84c05608c12 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=esnext).1.normal.js @@ -19,7 +19,6 @@ const env = { }; try { const before = _ts_add_disposable_resource._(env, null, false); - ; C = _ts_decorate._([ dec ], C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=es6,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=es6,target=es2015).1.normal.js index e27f115bbf4b..9bc7afb1bddf 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=es6,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=es6,target=es2015).1.normal.js @@ -9,7 +9,6 @@ const env = { }; try { const before = _ts_add_disposable_resource(env, null, false); - ; C = _ts_decorate([ dec ], C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=es6,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=es6,target=es5).1.normal.js index d68c8354d58d..cd0a48f88df0 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=es6,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=es6,target=es5).1.normal.js @@ -10,7 +10,6 @@ var env = { }; try { var before = _ts_add_disposable_resource(env, null, false); - ; C = _ts_decorate([ dec ], C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=es6,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=es6,target=esnext).1.normal.js index e27f115bbf4b..9bc7afb1bddf 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=es6,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=es6,target=esnext).1.normal.js @@ -9,7 +9,6 @@ const env = { }; try { const before = _ts_add_disposable_resource(env, null, false); - ; C = _ts_decorate([ dec ], C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es2015).1.normal.js index c52f7a40fa32..ee9f64715674 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es2015).1.normal.js @@ -27,7 +27,6 @@ System.register([ }; try { const before = _ts_add_disposable_resource(env, null, false); - ; _export("default", C = _ts_decorate([ dec ], C)); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es5).1.normal.js index 26257bb609b6..bfd04dc8d16f 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=es5).1.normal.js @@ -30,7 +30,6 @@ System.register([ }; try { var before = _ts_add_disposable_resource(env, null, false); - ; _export("default", C = _ts_decorate([ dec ], C)); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=esnext).1.normal.js index c52f7a40fa32..ee9f64715674 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.3(module=system,target=esnext).1.normal.js @@ -27,7 +27,6 @@ System.register([ }; try { const before = _ts_add_disposable_resource(env, null, false); - ; _export("default", C = _ts_decorate([ dec ], C)); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es2015).1.normal.js index 520546b63699..3ad7ccbb99d7 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es2015).1.normal.js @@ -19,7 +19,6 @@ const env = { }; try { const before = _ts_add_disposable_resource._(env, null, false); - ; _class = _ts_decorate._([ dec ], _class); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es5).1.normal.js index 874c182778f9..4a6491a8c332 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es5).1.normal.js @@ -20,7 +20,6 @@ var env = { }; try { var before = _ts_add_disposable_resource._(env, null, false); - ; _class = _ts_decorate._([ dec ], _class); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=esnext).1.normal.js index 520546b63699..3ad7ccbb99d7 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=esnext).1.normal.js @@ -19,7 +19,6 @@ const env = { }; try { const before = _ts_add_disposable_resource._(env, null, false); - ; _class = _ts_decorate._([ dec ], _class); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=es6,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=es6,target=es2015).1.normal.js index d70a7bda4f0e..c56c8b871f93 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=es6,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=es6,target=es2015).1.normal.js @@ -9,7 +9,6 @@ const env = { }; try { const before = _ts_add_disposable_resource(env, null, false); - ; _class = _ts_decorate([ dec ], _class); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=es6,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=es6,target=es5).1.normal.js index c05dd767e355..935ee3dffdb4 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=es6,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=es6,target=es5).1.normal.js @@ -10,7 +10,6 @@ var env = { }; try { var before = _ts_add_disposable_resource(env, null, false); - ; _class = _ts_decorate([ dec ], _class); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=es6,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=es6,target=esnext).1.normal.js index d70a7bda4f0e..c56c8b871f93 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=es6,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=es6,target=esnext).1.normal.js @@ -9,7 +9,6 @@ const env = { }; try { const before = _ts_add_disposable_resource(env, null, false); - ; _class = _ts_decorate([ dec ], _class); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es2015).1.normal.js index 9d045cb03472..bc9f81d08f2e 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es2015).1.normal.js @@ -27,7 +27,6 @@ System.register([ }; try { const before = _ts_add_disposable_resource(env, null, false); - ; _export("default", _class = _ts_decorate([ dec ], _class)); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es5).1.normal.js index 4f5d2479b21a..ee6a99c6d986 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=es5).1.normal.js @@ -30,7 +30,6 @@ System.register([ }; try { var before = _ts_add_disposable_resource(env, null, false); - ; _export("default", _class = _ts_decorate([ dec ], _class)); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=esnext).1.normal.js index 9d045cb03472..bc9f81d08f2e 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.4(module=system,target=esnext).1.normal.js @@ -27,7 +27,6 @@ System.register([ }; try { const before = _ts_add_disposable_resource(env, null, false); - ; _export("default", _class = _ts_decorate([ dec ], _class)); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es2015).1.normal.js index 492d91e77f37..ff82d008764c 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es2015).1.normal.js @@ -19,7 +19,6 @@ const env = { }; try { const before = _ts_add_disposable_resource._(env, null, false); - ; class C { } C = _ts_decorate._([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es5).1.normal.js index 6165d7f18b3b..e0f8bdb8fc0e 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es5).1.normal.js @@ -20,7 +20,6 @@ var env = { }; try { var before = _ts_add_disposable_resource._(env, null, false); - ; var C = function C() { "use strict"; _class_call_check._(this, C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=esnext).1.normal.js index 492d91e77f37..ff82d008764c 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=esnext).1.normal.js @@ -19,7 +19,6 @@ const env = { }; try { const before = _ts_add_disposable_resource._(env, null, false); - ; class C { } C = _ts_decorate._([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=es6,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=es6,target=es2015).1.normal.js index 530061460ba6..96410f717fd8 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=es6,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=es6,target=es2015).1.normal.js @@ -9,7 +9,6 @@ const env = { }; try { const before = _ts_add_disposable_resource(env, null, false); - ; class C { } C = _ts_decorate([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=es6,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=es6,target=es5).1.normal.js index 81fb2fc9e2f4..6a543efc2412 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=es6,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=es6,target=es5).1.normal.js @@ -10,7 +10,6 @@ var env = { }; try { var before = _ts_add_disposable_resource(env, null, false); - ; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=es6,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=es6,target=esnext).1.normal.js index 530061460ba6..96410f717fd8 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=es6,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=es6,target=esnext).1.normal.js @@ -9,7 +9,6 @@ const env = { }; try { const before = _ts_add_disposable_resource(env, null, false); - ; class C { } C = _ts_decorate([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es2015).1.normal.js index 0a7e4c10fa3b..87689d8d7a64 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es2015).1.normal.js @@ -26,7 +26,6 @@ System.register([ }; try { const before = _ts_add_disposable_resource(env, null, false); - ; class C { } _export("C", C = _ts_decorate([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es5).1.normal.js index 7f8b42903eba..6f63332caf30 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=es5).1.normal.js @@ -30,7 +30,6 @@ System.register([ }; try { var before = _ts_add_disposable_resource(env, null, false); - ; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=esnext).1.normal.js index 0a7e4c10fa3b..87689d8d7a64 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.5(module=system,target=esnext).1.normal.js @@ -26,7 +26,6 @@ System.register([ }; try { const before = _ts_add_disposable_resource(env, null, false); - ; class C { } _export("C", C = _ts_decorate([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es2015).1.normal.js index 1cf9521a4628..17e608b169ac 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es2015).1.normal.js @@ -19,7 +19,6 @@ const env = { }; try { const before = _ts_add_disposable_resource._(env, null, false); - ; class C { } C = _ts_decorate._([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es5).1.normal.js index 084eb51af822..9178145f9dcb 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es5).1.normal.js @@ -20,7 +20,6 @@ var env = { }; try { var before = _ts_add_disposable_resource._(env, null, false); - ; var C = function C() { "use strict"; _class_call_check._(this, C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=esnext).1.normal.js index 1cf9521a4628..17e608b169ac 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=esnext).1.normal.js @@ -19,7 +19,6 @@ const env = { }; try { const before = _ts_add_disposable_resource._(env, null, false); - ; class C { } C = _ts_decorate._([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=es6,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=es6,target=es2015).1.normal.js index 05caf9ee76b1..0858a3aa01fa 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=es6,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=es6,target=es2015).1.normal.js @@ -9,7 +9,6 @@ const env = { }; try { const before = _ts_add_disposable_resource(env, null, false); - ; class C { } C = _ts_decorate([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=es6,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=es6,target=es5).1.normal.js index b7914d546642..0bb992a9b125 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=es6,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=es6,target=es5).1.normal.js @@ -10,7 +10,6 @@ var env = { }; try { var before = _ts_add_disposable_resource(env, null, false); - ; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=es6,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=es6,target=esnext).1.normal.js index 05caf9ee76b1..0858a3aa01fa 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=es6,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=es6,target=esnext).1.normal.js @@ -9,7 +9,6 @@ const env = { }; try { const before = _ts_add_disposable_resource(env, null, false); - ; class C { } C = _ts_decorate([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es2015).1.normal.js index 0a1f6587b6cd..b7c0ab30f2b3 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es2015).1.normal.js @@ -26,7 +26,6 @@ System.register([ }; try { const before = _ts_add_disposable_resource(env, null, false); - ; class C { } _export("D", C = _ts_decorate([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es5).1.normal.js index 4e22ca9ba296..86eff4412b55 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=es5).1.normal.js @@ -30,7 +30,6 @@ System.register([ }; try { var before = _ts_add_disposable_resource(env, null, false); - ; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=esnext).1.normal.js index 0a1f6587b6cd..b7c0ab30f2b3 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.6(module=system,target=esnext).1.normal.js @@ -26,7 +26,6 @@ System.register([ }; try { const before = _ts_add_disposable_resource(env, null, false); - ; class C { } _export("D", C = _ts_decorate([ diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es2015).1.normal.js index b66d229133a5..d496984ebc4a 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es2015).1.normal.js @@ -18,7 +18,6 @@ try { dec ], C); const after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es5).1.normal.js index fde9c081fba4..7200dc0ce670 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es5).1.normal.js @@ -21,7 +21,6 @@ try { dec ], C); var after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=esnext).1.normal.js index b66d229133a5..d496984ebc4a 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=esnext).1.normal.js @@ -18,7 +18,6 @@ try { dec ], C); const after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=es6,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=es6,target=es2015).1.normal.js index f069d6d35501..ddd3ab32f536 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=es6,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=es6,target=es2015).1.normal.js @@ -14,7 +14,6 @@ try { dec ], C); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=es6,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=es6,target=es5).1.normal.js index 02482c9f660b..db9f40d21735 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=es6,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=es6,target=es5).1.normal.js @@ -17,7 +17,6 @@ try { dec ], C); var after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=es6,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=es6,target=esnext).1.normal.js index f069d6d35501..ddd3ab32f536 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=es6,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=es6,target=esnext).1.normal.js @@ -14,7 +14,6 @@ try { dec ], C); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es2015).1.normal.js index 3b01a0d1448c..d19968ed1cad 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es2015).1.normal.js @@ -31,7 +31,6 @@ System.register([ dec ], C); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es5).1.normal.js index 56f3eda3da75..0a36b43d4225 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=es5).1.normal.js @@ -37,7 +37,6 @@ System.register([ dec ], C); var after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=esnext).1.normal.js index 3b01a0d1448c..d19968ed1cad 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.7(module=system,target=esnext).1.normal.js @@ -31,7 +31,6 @@ System.register([ dec ], C); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es2015).1.normal.js index b2bef5eed5a7..26c35f17d1e5 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es2015).1.normal.js @@ -22,7 +22,6 @@ try { dec ], C); const after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es5).1.normal.js index cfe4bd2dc1c5..39952d2e018c 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es5).1.normal.js @@ -23,7 +23,6 @@ try { dec ], C); var after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=esnext).1.normal.js index b2bef5eed5a7..26c35f17d1e5 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=esnext).1.normal.js @@ -22,7 +22,6 @@ try { dec ], C); const after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=es6,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=es6,target=es2015).1.normal.js index 1af565ff38ce..009df51b2e07 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=es6,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=es6,target=es2015).1.normal.js @@ -12,7 +12,6 @@ try { dec ], C); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=es6,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=es6,target=es5).1.normal.js index 19ab5479b91b..115cf8248824 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=es6,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=es6,target=es5).1.normal.js @@ -13,7 +13,6 @@ try { dec ], C); var after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=es6,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=es6,target=esnext).1.normal.js index 1af565ff38ce..009df51b2e07 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=es6,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=es6,target=esnext).1.normal.js @@ -12,7 +12,6 @@ try { dec ], C); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es2015).1.normal.js index eb77033fe56a..d76bc4d0cbf7 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es2015).1.normal.js @@ -30,7 +30,6 @@ System.register([ dec ], C)); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es5).1.normal.js index 6791296f1c6e..fb9961cb6868 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=es5).1.normal.js @@ -33,7 +33,6 @@ System.register([ dec ], C)); var after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=esnext).1.normal.js index eb77033fe56a..d76bc4d0cbf7 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.8(module=system,target=esnext).1.normal.js @@ -30,7 +30,6 @@ System.register([ dec ], C)); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es2015).1.normal.js index 869d475d87c4..d7de09d4cd4a 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es2015).1.normal.js @@ -22,7 +22,6 @@ try { dec ], C); const after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es5).1.normal.js index ab0292f4aa4f..cd798553b3fb 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es5).1.normal.js @@ -23,7 +23,6 @@ try { dec ], C); var after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=esnext).1.normal.js index 869d475d87c4..d7de09d4cd4a 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=esnext).1.normal.js @@ -22,7 +22,6 @@ try { dec ], C); const after = _ts_add_disposable_resource._(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=es6,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=es6,target=es2015).1.normal.js index cdf1b124d841..bd0136e45ca8 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=es6,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=es6,target=es2015).1.normal.js @@ -12,7 +12,6 @@ try { dec ], C); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=es6,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=es6,target=es5).1.normal.js index 75df3acdefc6..b4226e1dc28b 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=es6,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=es6,target=es5).1.normal.js @@ -13,7 +13,6 @@ try { dec ], C); var after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=es6,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=es6,target=esnext).1.normal.js index cdf1b124d841..bd0136e45ca8 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=es6,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=es6,target=esnext).1.normal.js @@ -12,7 +12,6 @@ try { dec ], C); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es2015).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es2015).1.normal.js index f77c53c06fd9..223df18f7fb1 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es2015).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es2015).1.normal.js @@ -30,7 +30,6 @@ System.register([ dec ], C)); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es5).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es5).1.normal.js index 2b4a27e794cb..417ebb09154c 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es5).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=es5).1.normal.js @@ -33,7 +33,6 @@ System.register([ dec ], C)); var after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=esnext).1.normal.js b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=esnext).1.normal.js index f77c53c06fd9..223df18f7fb1 100644 --- a/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=esnext).1.normal.js +++ b/crates/swc/tests/tsc-references/usingDeclarationsWithLegacyClassDecorators.9(module=system,target=esnext).1.normal.js @@ -30,7 +30,6 @@ System.register([ dec ], C)); const after = _ts_add_disposable_resource(env, null, false); - ; } catch (e) { env.error = e; env.hasError = true; diff --git a/deny.toml b/deny.toml index 8465f9426284..bfab272be8b8 100644 --- a/deny.toml +++ b/deny.toml @@ -78,6 +78,7 @@ allow = [ "LicenseRef-ring", #ring "Unicode-DFS-2016", #unicode-ident "BSL-1.0", #xxhash-rust + "Unicode-3.0", ] # List of explictly disallowed licenses # See https://spdx.org/licenses/ for list of possible licenses