Support top-level await in the console
joaodasilva opened this issue · comments
This should work in the console:
s = await File.readText('README.md')
But fails with a SyntaxError:
Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules