Closed jtenner closed 5 years ago
https://github.com/WebAssembly/binaryen/blob/master/src/wasm/wasm.cpp#L994
Looks like the problem is here in this function.
Can you try to create a reduced repro so I can investigate? If your assumption on the origin is correct, it looks like the compiler it attempting to obtain a global that does not exist, by name.
https://github.com/jtenner/as-nes-olc/blob/master/assembly/index.ts
Hey good luck! It's a 6502 emulator. There's lots of functions here too. I'll try to help isolate it too.
Ah yes.
It looks like the long list of opcode references are what is causing the issue.
So to reproduce:
let global = [(255 references...)];
Edit:
So this was something I needed to optimize away anyway. I can probably work around the issue for now :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
There's lots of other un-useful stuff that binaryen spits out. Looks like fun, and totally out of my expertise.