10000 Arrow syntax missing a closure in ES5 · Issue #9408 · microsoft/TypeScript · GitHub
[go: up one dir, main page]

Skip to content
Arrow syntax missing a closure in ES5 #9408
@texastoland

Description

@texastoland

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0