Hacker News new | past | comments | ask | show | jobs | submit login

If you are in a module context, you could add "export" in front of the whole thing.



The count is from `return` on; the `async function* foo() {` part is excluded due to the `* foo() {`. Thus `export` isn’t applicable.




Applications are open for YC Summer 2021

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: