3 ms·
I don't know what the REPL you're running does with top level functions, but my guess is that an `await` needs to run within a function that is declared `async`
by dclowd9901 5y ago
I don't know what the REPL you're running does with top level functions, but my guess is that an `await` needs to run within a function that is declared `async`. The reason (if so) would be that then babel could then transpile the function appropriately into a Promisory function. At the top level, what function would be translated?