TypeScript/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es6.js
2015-06-19 16:01:12 -07:00

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); });
}
}