-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async generator generator polyfill causes crashes in older browsers #3453
Comments
I think this behavior with |
Do you have a preference for how this should be done? I'd like to give it a shot if I have some time. |
FWIW it was intentional on the TypeScript side to not use
|
I misspoke; Babel uses the same string you have here. I guess this is only a hazard for compat with typescript code. |
The async generator generator polyfill introduced 0.18.8 causes crashes in "older" browsers (such as Hermes) because it assumes that
Symbol.asyncIterator
exists:esbuild/internal/runtime/runtime.go
Lines 392 to 393 in a7fcc43
We've worked around the crash by polyfilling the symbol, but it feels like I'm missing something. It works for now, but I don't know if this causes other issues or whether there's a proper solution.
The text was updated successfully, but these errors were encountered: