Skip to content

Commit c72f81c

Browse files
authored
Update __generators helper to match TS#24463 (#53)
1 parent 2c3d5d6 commit c72f81c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tslib.es6.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ export function __generator(thisArg, body) {
7373
function step(op) {
7474
if (f) throw new TypeError("Generator is already executing.");
7575
while (_) try {
76-
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
77-
if (y = 0, t) op = [0, t.value];
76+
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;
77+
if (y = 0, t) op = [op[0] & 2, t.value];
7878
switch (op[0]) {
7979
case 0: case 1: t = op; break;
8080
case 4: _.label++; return { value: op[1], done: false };

tslib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ var __importDefault;
115115
function step(op) {
116116
if (f) throw new TypeError("Generator is already executing.");
117117
while (_) try {
118-
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
119-
if (y = 0, t) op = [0, t.value];
118+
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;
119+
if (y = 0, t) op = [op[0] & 2, t.value];
120120
switch (op[0]) {
121121
case 0: case 1: t = op; break;
122122
case 4: _.label++; return { value: op[1], done: false };

0 commit comments

Comments
 (0)