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": [ 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) {