TypeScript/tests/baselines/reference/asyncArrowFunctionCapturesThis_es6.js

15 lines
304 B
TypeScript
Raw Normal View History

2015-05-07 02:33:58 +02:00
//// [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; });
2015-05-07 02:33:58 +02:00
}
}