TypeScript/tests/baselines/reference/asyncFunctionDeclaration14_es6.js

12 lines
244 B
TypeScript
Raw Normal View History

2015-05-07 02:33:58 +02:00
//// [asyncFunctionDeclaration14_es6.ts]
async function foo(): Promise<void> {
return;
}
//// [asyncFunctionDeclaration14_es6.js]
function foo() {
return __awaiter(this, void 0, Promise, function* () {
2015-05-07 02:33:58 +02:00
return;
2015-06-18 20:31:03 +02:00
});
2015-05-07 02:33:58 +02:00
}