Support async/await by including ES2017

This required adjusting the module loading system.
This commit is contained in:
Ryan Dahl 2018-05-26 15:21:15 -04:00
parent cbfb7d8720
commit 7609df9d4f
6 changed files with 53 additions and 15 deletions

11
testdata/012_async.ts vendored Normal file
View file

@ -0,0 +1,11 @@
// Check that we can use the async keyword.
async function main() {
await new Promise((resolve, reject) => {
console.log("2");
setTimeout(resolve, 100);
});
console.log("3");
}
console.log("1");
main();