Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for top-level-for-await #3212
Looks like top-level for-await already works with js. This PR allows it in typescript files too.
Unfortunately prettier/babel doesn't accept it (eslint does). So the js test file is ignored... Confusingly the ts file doesn't suffer with the same issue.
Ok, I added in a few places I saw it. Assuming this should be preferred over window.onload...
I also discovered the ws README example code was broken, so I ported it over from the examples. Although it may be better just to delete it (and point to those examples).
_048_media_types_jsx failed in the first commit, presumably it's this:
(This particularly test requires the http_server to be up at compile time.)