Skip to content

Commit

Permalink
Merge pull request #31 from Microsoft/fixTS15862
Browse files Browse the repository at this point in the history
Update asyncDelegator for TS15862
  • Loading branch information
rbuckton committed May 15, 2017
2 parents 0cadbd0 + a8afe99 commit 363babc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions tslib.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions tslib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 363babc

Please sign in to comment.