Join GitHub today
Add __wbindgen_throw to importObject #1
I was following your serverless-rust tutorial on my own.
I was getting an error in the CloudFlare Script editor on save, that the function
it seems my WASM is importing "__wbindgen_throw":
and I saw it was implemented in the generated JS:
so I added it to the importObject:
(those are my function references, won't coincide with your code)....
and everything worked!
This maybe caused by some update to the wasm-bindgen or wasm-pack since you wrote the tutorial maybe?
Thanks Andrew! I don't have the environment setup anymore to try this out but I've updated the blog post with a link to your PR and a credit to help folks find their way. https://blog.cloudflare.com/cloudflare-workers-as-a-serverless-rust-platform/