15 lines
304 B
TypeScript
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; });
|
|
}
|
|
}
|