Closed grinat closed 5 years ago
This is better. I forget why I went with the custom thing. Maybe I didn't know how to handle browser + node effectively.
It would be helpful if we had tests for browser, and maybe test/fixture/complex.wast
would be the failing case.
In browser plugin did not working, always fail with errors: Wasm decoding failed: unknown section code #0xXX @+XX
I changed base64 implementation in banner to window.atob for browsers and Buffer.from for node, and now all working fine. All test passed.