Hacker News new | ask | show | jobs
by bmeck 3568 days ago
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.
1 comments

I wasn't aware of that restriction. That makes sense. Thanks for the info.