17 lines
432 B
TypeScript
17 lines
432 B
TypeScript
//// [asyncArrowFunctionCapturesArguments_es6.ts]
|
|
class C {
|
|
method() {
|
|
function other() {}
|
|
var fn = async () => await other.apply(this, arguments);
|
|
}
|
|
}
|
|
|
|
|
|
//// [asyncArrowFunctionCapturesArguments_es6.js]
|
|
class C {
|
|
method() {
|
|
function other() { }
|
|
var fn = () => __awaiter(this, arguments, Promise, function* (_arguments) { return yield other.apply(this, _arguments); });
|
|
}
|
|
}
|