mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
424 B
TypeScript
18 lines
424 B
TypeScript
//// [tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunctionCapturesThis_es6.ts] ////
|
|
|
|
//// [asyncArrowFunctionCapturesThis_es6.ts]
|
|
class C {
|
|
method() {
|
|
var fn = async () => await this;
|
|
}
|
|
}
|
|
|
|
|
|
//// [asyncArrowFunctionCapturesThis_es6.js]
|
|
"use strict";
|
|
class C {
|
|
method() {
|
|
var fn = () => __awaiter(this, void 0, void 0, function* () { return yield this; });
|
|
}
|
|
}
|