Skip to content

Commit

Permalink
Update test refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Mar 12, 2024
1 parent 3d233da commit cedafc2
Show file tree
Hide file tree
Showing 48 changed files with 315 additions and 212 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
//// [awaitUsingDeclarationsTopLevelOfModule.1.ts]
import { _ as _dispose } from "@swc/helpers/_/_dispose";
import { _ as _using } from "@swc/helpers/_/_using";
export const x = 1;
var _x;
export { y };
export const w = 3;
var _w;
export { _default as default };
try {
var _stack = [];
const x = 1;
_x = x;
var z = _using(_stack, {
async [Symbol.asyncDispose] () {}
}, true);
var y = 2;
const w = 3;
_w = w;
var _default = 4;
console.log(w, x, y, z);
} catch (_) {
Expand All @@ -19,3 +23,5 @@ try {
} finally{
await _dispose(_stack, _error, _hasError);
}
export { _x as x };
export { _w as w };
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 };
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ System.register([
"@swc/helpers/_/_using"
], function(_export, _context) {
"use strict";
var _dispose, _using, x, w;
var _dispose, _using, _x, _w;
_export({
x: void 0,
w: void 0
});
return {
setters: [
function(_dispose1) {
Expand All @@ -15,14 +19,16 @@ System.register([
}
],
execute: async function() {
_export("x", x = 1);
_export("w", w = 3);
try {
var _stack = [];
const x = 1;
_export("x", _x = x);
var z = _using(_stack, {
async [Symbol.asyncDispose] () {}
}, true);
var y = 2;
const w = 3;
_export("w", _w = w);
var _default = 4;
console.log(w, x, y, z);
} catch (_) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ System.register([
"@swc/helpers/_/_using"
], function(_export, _context) {
var _dispose, _using;
return {
return _export({
x: void 0,
w: void 0
}), {
setters: [
function(_dispose1) {
_dispose = _dispose1._;
Expand All @@ -14,12 +17,13 @@ System.register([
}
],
execute: async function() {
_export("x", 1), _export("w", 3);
try {
var _stack = [], z = _using(_stack, {
var _stack = [];
_export("x", 1);
var z = _using(_stack, {
async [Symbol.asyncDispose] () {}
}, !0);
console.log(3, 1, 2, z);
_export("w", 3), console.log(3, 1, 2, z);
} catch (_) {
var _error = _, _hasError = !0;
} finally{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,27 @@ define([
return _default;
},
w: function() {
return w;
return _w;
},
x: function() {
return x;
return _x;
},
y: function() {
return y;
}
});
const x = 1;
const w = 3;
var _x;
var _w;
try {
var _stack = [];
const x = 1;
_x = x;
var z = _using._(_stack, {
[Symbol.dispose] () {}
});
var y = 2;
const w = 3;
_w = w;
var _default = 4;
console.log(w, x, y, z);
} catch (_) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,24 @@ define([
return _default;
},
w: function() {
return w;
return _w;
},
x: function() {
return x;
return _x;
},
y: function() {
return y;
}
});
let x = 1, w = 3;
try {
var _stack = [], z = _using._(_stack, {
var _x, _w, _stack = [];
_x = 1;
var z = _using._(_stack, {
[Symbol.dispose] () {}
}), y = 2, _default = 4;
console.log(w, x, y, z);
}), y = 2;
_w = 3;
var _default = 4;
console.log(3, 1, y, z);
} catch (_) {
var _error = _, _hasError = !0;
} finally{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,29 @@ _export(exports, {
return _default;
},
w: function() {
return w;
return _w;
},
x: function() {
return x;
return _x;
},
y: function() {
return y;
}
});
const _dispose = require("@swc/helpers/_/_dispose");
const _using = require("@swc/helpers/_/_using");
const x = 1;
const w = 3;
var _x;
var _w;
try {
var _stack = [];
const x = 1;
_x = x;
var z = _using._(_stack, {
[Symbol.dispose] () {}
});
var y = 2;
const w = 3;
_w = w;
var _default = 4;
console.log(w, x, y, z);
} catch (_) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,25 @@ Object.defineProperty(exports, "__esModule", {
return _default;
},
w: function() {
return w;
return _w;
},
x: function() {
return x;
return _x;
},
y: function() {
return y;
}
});
const _dispose = require("@swc/helpers/_/_dispose"), _using = require("@swc/helpers/_/_using"), x = 1, w = 3;
const _dispose = require("@swc/helpers/_/_dispose"), _using = require("@swc/helpers/_/_using");
try {
var _stack = [], z = _using._(_stack, {
var _x, _w, _stack = [];
_x = 1;
var z = _using._(_stack, {
[Symbol.dispose] () {}
}), y = 2, _default = 4;
console.log(w, x, y, z);
}), y = 2;
_w = 3;
var _default = 4;
console.log(3, 1, y, z);
} catch (_) {
var _error = _, _hasError = !0;
} finally{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
//// [usingDeclarationsTopLevelOfModule.1.ts]
import { _ as _dispose } from "@swc/helpers/_/_dispose";
import { _ as _using } from "@swc/helpers/_/_using";
export const x = 1;
var _x;
export { y };
export const w = 3;
var _w;
export { _default as default };
try {
var _stack = [];
const x = 1;
_x = x;
var z = _using(_stack, {
[Symbol.dispose] () {}
});
var y = 2;
const w = 3;
_w = w;
var _default = 4;
console.log(w, x, y, z);
} catch (_) {
Expand All @@ -19,3 +23,5 @@ try {
} finally{
_dispose(_stack, _error, _hasError);
}
export { _x as x };
export { _w as w };
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 };
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ System.register([
"@swc/helpers/_/_using"
], function(_export, _context) {
"use strict";
var _dispose, _using, x, w;
var _dispose, _using, _x, _w;
_export({
x: void 0,
w: void 0
});
return {
setters: [
function(_dispose1) {
Expand All @@ -15,14 +19,16 @@ System.register([
}
],
execute: function() {
_export("x", x = 1);
_export("w", w = 3);
try {
var _stack = [];
const x = 1;
_export("x", _x = x);
var z = _using(_stack, {
[Symbol.dispose] () {}
});
var y = 2;
const w = 3;
_export("w", _w = w);
var _default = 4;
console.log(w, x, y, z);
} catch (_) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ System.register([
"@swc/helpers/_/_using"
], function(_export, _context) {
var _dispose, _using;
return {
return _export({
x: void 0,
w: void 0
}), {
setters: [
function(_dispose1) {
_dispose = _dispose1._;
Expand All @@ -14,12 +17,13 @@ System.register([
}
],
execute: function() {
_export("x", 1), _export("w", 3);
try {
var _stack = [], z = _using(_stack, {
var _stack = [];
_export("x", 1);
var z = _using(_stack, {
[Symbol.dispose] () {}
});
console.log(3, 1, 2, z);
_export("w", 3), console.log(3, 1, 2, z);
} catch (_) {
var _error = _, _hasError = !0;
} finally{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ Object.defineProperty(exports, "__esModule", {
Object.defineProperty(exports, "C", {
enumerable: true,
get: function() {
return C;
return _C;
}
});
const _ts_decorate = require("@swc/helpers/_/_ts_decorate");
const _dispose = require("@swc/helpers/_/_dispose");
const _using = require("@swc/helpers/_/_using");
class C {
}
var _C;
try {
var _stack = [];
var before = _using._(_stack, null);
class C {
}
_C = C;
C = _ts_decorate._([
dec
], C);
Expand Down
Loading

0 comments on commit cedafc2

Please sign in to comment.