TypeScript/tests/baselines/reference/asyncArrowFunctionCapturesThis_es6.js
2015-06-09 17:08:15 -07:00

15 lines
296 B
TypeScript

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