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