Skip to content

Commit d66ba6a

Browse files
committed
fix(es/helpers): Sync tslib _ts_generator implementation
1 parent eb7f7e9 commit d66ba6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/swc_ecma_transforms_base/src/helpers/_ts_generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function _ts_generator(thisArg, body) {
44
function verb(n) { return function (v) { return step([n, v]); }; }
55
function step(op) {
66
if (f) throw new TypeError("Generator is already executing.");
7-
while (_) try {
7+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
88
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
99
if (y = 0, t) op = [op[0] & 2, t.value];
1010
switch (op[0]) {

0 commit comments

Comments
 (0)