WebAssembly.instantiate(): Wasm code generation disallowed by embedder

Hey folks,

I'm trying to get a Wasm library to work in a Pages function, but I'm having the hardest time instantiating it.

At first I was fetching the .wasm binary to instantiate, but someone in #pages-help told me it had to be bundled within the _worker.js script. Okay, now it's a UInt8Array directly in the _worker.js script but I still get this error.

Is there more information on how the wasm binary should be bundled? Is it a specific format that will make the CF worker accept it?
Was this page helpful?