-
Notifications
You must be signed in to change notification settings - Fork 734
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
🐛 BUG: Uncaught ReferenceError: FinalizationRegistry is not defined #2258
Comments
Does it make sense to add a warning here? The error message does say nothing |
@shyim thanks, it would be nice to support FinalizationRegistry which makes use of javascript GC, but I don't know whether it is supported in Cloudflare env and how to fix that. |
Hey! 👋 Thanks for raising this. I brought this up internally, and it seems like there are some technical restrictions why we can't implement |
What version of
Wrangler
are you using?2.4.2
What operating system are you using?
Linux and Mac
Describe the Bug
We have javascript call the wasm code, with WASM_BINDGEN_WEAKREF defined to generate code to register to javascript garbage collector, please see https://rustwasm.github.io/wasm-bindgen/reference/weak-references.html for detail.
here is an example of code generated by wasm-bindgen:
it works well with running "wrangler dev --local", but the following error was report when publish to CloudFlare with wrangler2
The text was updated successfully, but these errors were encountered: