-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
315 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
...c/tests/tsc-references/awaitUsingDeclarationsTopLevelOfModule.1(module=es6).2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
//// [awaitUsingDeclarationsTopLevelOfModule.1.ts] | ||
import { _ as _dispose } from "@swc/helpers/_/_dispose"; | ||
import { _ as _using } from "@swc/helpers/_/_using"; | ||
export const x = 1; | ||
export const w = 3; | ||
try { | ||
var _stack = [], z = _using(_stack, { | ||
var _x, _w, _stack = []; | ||
_x = 1; | ||
var z = _using(_stack, { | ||
async [Symbol.asyncDispose] () {} | ||
}, !0), y = 2, _default = 4; | ||
}, !0), y = 2; | ||
_w = 3; | ||
var _default = 4; | ||
console.log(3, 1, y, z); | ||
} catch (_) { | ||
var _error = _, _hasError = !0; | ||
} finally{ | ||
await _dispose(_stack, _error, _hasError); | ||
} | ||
export { y, _default as default }; | ||
export { y, _default as default, _x as x, _w as w }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
...es/swc/tests/tsc-references/usingDeclarationsTopLevelOfModule.1(module=es6).2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
//// [usingDeclarationsTopLevelOfModule.1.ts] | ||
import { _ as _dispose } from "@swc/helpers/_/_dispose"; | ||
import { _ as _using } from "@swc/helpers/_/_using"; | ||
export const x = 1; | ||
export const w = 3; | ||
try { | ||
var _stack = [], z = _using(_stack, { | ||
var _x, _w, _stack = []; | ||
_x = 1; | ||
var z = _using(_stack, { | ||
[Symbol.dispose] () {} | ||
}), y = 2, _default = 4; | ||
}), y = 2; | ||
_w = 3; | ||
var _default = 4; | ||
console.log(3, 1, y, z); | ||
} catch (_) { | ||
var _error = _, _hasError = !0; | ||
} finally{ | ||
_dispose(_stack, _error, _hasError); | ||
} | ||
export { y, _default as default }; | ||
export { y, _default as default, _x as x, _w as w }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.