TypeScript/tests/baselines/reference/asyncArrowFunctionCapturesThis_es6.js

14 lines
287 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);
}
}