Re:Top-level await in JavaScript is a footgun
by bmeck on Wednesday September 14, 2016 @01:24PM
(#12499225)
top level await is only possible in grammar w/ `await` as a reserved word. This is limited to Modules (type=module) and async functions. You can't put it in your click handler or random Script like the examples you gave.
[ Parent
| on HN ]