subrosa-io/subrosa-client

asm.js type error

Closed this issue · 2 comments

When I load https://subrosa.io/app/, I get this error in the web console in Firefox:

TypeError: asm.js type error: expecting argument type declaration for 'e' of the form 'arg = arg|0' or 'arg = +arg' or 'arg = fround(arg)'

I assume a javascript minifier might be breaking the asm.js optimizations.

https://subrosa.io/dev/ does not give the error, and gives this as expected for a page containing asm.js code:

Successfully compiled asm.js code (total compilation time 102ms; not stored in cache)

It looks like that page's code isn't minified, so I figure that supports my theory.

ixro commented

Thanks for pointing this out, you're right.

While investigating this issue, I've decided to move to scrypt-async-js which is much smaller (6kb vs 250kb) and isn't affected by https://bugs.webkit.org/show_bug.cgi?id=137433

c51e222