From c72f81c7f77cd657349377bf3704350f65d31661 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 29 May 2018 13:34:44 -0700 Subject: [PATCH] Update __generators helper to match TS#24463 (#53) --- tslib.es6.js | 4 ++-- tslib.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tslib.es6.js b/tslib.es6.js index ecb0eb8..2caa7ca 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -73,8 +73,8 @@ export function __generator(thisArg, body) { function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; diff --git a/tslib.js b/tslib.js index d8d32c0..b0b1ff3 100644 --- a/tslib.js +++ b/tslib.js @@ -115,8 +115,8 @@ var __importDefault; function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false };