-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Description
TypeScript Version: 1.8.0 / nightly (2.0.0-dev.20160628
)
I'm currently using async
in ES5 from the compiler service (similar to #1564 (comment)) via Regenerator. Could #7706 be fixed since it's on the 2.0 roadmap?
Code
async () => aPromise
ES2015:
(() => __awaiter(this, void 0, void 0, function* () { return aPromise; }));
Actual ES5:
(function () __awaiter(this, void 0, void 0, function* () { return aPromise; }));
// ^ syntax error
Expected ES5:
(function () { return __awaiter(this, void 0, void 0, function* () { return aPromise; }); });
CC @spicydonuts
Metadata
Metadata
Assignees
Labels
No labels