TypeScript/tests/baselines/reference/asyncArrowFunctionCapturesThis_es6.js
2015-06-19 16:01:12 -07:00

15 lines
304 B
TypeScript

//// [asyncArrowFunctionCapturesThis_es6.ts]
class C {
method() {
var fn = async () => await this;
}
}
//// [asyncArrowFunctionCapturesThis_es6.js]
class C {
method() {
var fn = () => __awaiter(this, void 0, Promise, function* () { return yield this; });
}
}