Uncaught (in promise) CompileError: wasm validation error: at offset 4: failed to match magic number

I am getting this error when opening the index.html page:

Uncaught (in promise) CompileError: wasm validation error: at offset 4: failed to match magic number
    instantiate_streaming http://localhost:8080/reflect.js:148
    reflect http://localhost:8080/reflect.js:231
    reflect http://localhost:8080/reflect.js:1006
    load_main http://localhost:8080/reflect.js:284
    async* http://localhost:8080/game.js:3
    EventListener.handleEvent* http://localhost:8080/game.js:1

My failing code is in:

Firefox 128.9.0esr (64-bit)

Turns out it is a problem in my Mozilla Firefox 128.9.0esr (64-bit) (?!).

Google Chromium Version 120.0.6099.224 (Official Build) built on Debian 11.8, running on Debian 11.7 (64-bit) logs “poop” using console.log as expected.

I don’t know what is the problem.

Why was this post flagged as spam? It is my submission to this Lisp Jam, using Spritely Hoot, not a commercial product.

Discourse’s automatic spam detection flagged your post. I marked it as not spam.

Regarding your problem, the error suggests that your file is not a WebAssembly file. The error is thrown after reading the first 4 bytes of the file and discovering that it doesn’t match the expected magic number. Whatever the contents, it was not produced by Hoot’s assembler.