Invalid URL when initiating AssemblyScript generated WASM
I'm writing code in AssemblyScript and compiling it to WASM. AssemblyScript also generates JS bindings that work great in Node, but I'm having trouble getting them working in Cloudflare Workers.
In the generated JS bindings, there is code like this this initiates the WebAssembly runtime:
Inside my worker, that relative URL does not play nicely:
generates this error:
This works in Node in general. Is there a difference in Cloudflare that makes this not work?
In the generated JS bindings, there is code like this this initiates the WebAssembly runtime:
Inside my worker, that relative URL does not play nicely:
new URL("release.wasm", import.meta.url)generates this error:
This works in Node in general. Is there a difference in Cloudflare that makes this not work?
