Skip to content

Commit

Permalink
Fix syntax error in __awaiter when running in ES3
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Oct 6, 2016
1 parent a0f0cd6 commit 0a43c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tslib.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var __generator;
__awaiter = function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator.throw(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments)).next());
});
Expand Down

0 comments on commit 0a43c5c

Please sign in to comment.