From 4fcf2ca94c8fa5707232bd9bc2b54f5050495579 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Mon, 15 May 2017 15:32:33 -0700 Subject: [PATCH 1/2] Update asyncDelegator for TS15862 --- 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 73c4c80..2202249 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -150,8 +150,8 @@ export function __asyncGenerator(thisArg, _arguments, generator) { export function __asyncDelegator(o) { var i, p; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : v; }; } + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; } } export function __asyncValues(o) { diff --git a/tslib.js b/tslib.js index 850ae26..f8c5d0e 100644 --- a/tslib.js +++ b/tslib.js @@ -181,8 +181,8 @@ var __asyncValues; __asyncDelegator = function (o) { var i, p; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : v; }; } + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; } }; __asyncValues = function (o) { From a8afe993e088ae666624660e966a3296ec2bd129 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Mon, 15 May 2017 15:33:37 -0700 Subject: [PATCH 2/2] Update package version --- bower.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index e3701e8..84af2c6 100644 --- a/bower.json +++ b/bower.json @@ -4,7 +4,7 @@ "Microsoft Corp." ], "homepage": "http://typescriptlang.org/", - "version": "1.7.0", + "version": "1.7.1", "license": "Apache-2.0", "description": "Runtime library for TypeScript helper functions", "keywords": [ diff --git a/package.json b/package.json index 099660e..a4eb77e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "tslib", "author": "Microsoft Corp.", "homepage": "http://typescriptlang.org/", - "version": "1.7.0", + "version": "1.7.1", "license": "Apache-2.0", "description": "Runtime library for TypeScript helper functions", "keywords": [