I think you probably need to replace all Math_fround() with +(), so it
casts to double, that might be needed in some cases.

I know juj had an experiment with doing this on the client-side, in order
to remove precise mode code if the browser didn't support Math_fround. I
think browser.test_code_mods checks that, and the code is probably in
tools/client_mods.py

On Tue, Aug 1, 2017 at 4:18 AM, Александр Гурьянов <[email protected]>
wrote:

> Sorry, this is uglifyjs bug
>
> 2017-08-01 15:26 GMT+07:00 Александр Гурьянов <[email protected]>:
> > TypeError: asm.js type error: fixnum is not a subtype of double? or
> floatish
> >
> >
> > 2017-08-01 15:25 GMT+07:00 Александр Гурьянов <[email protected]>:
> >> Hmm, after that manipultaions code can't be compiled in asm.js mode (
> >>
> >> 2017-08-01 14:06 GMT+07:00 caiiiycuk <[email protected]>:
> >>> I think I found another way, I wrote uglifyjs script that remove
> Math_fround
> >>> from everywhere except list of functions. This script just find calls
> to
> >>> Math_fround and replace it with callee argument. Looks like this
> solution
> >>> work. What do you think, is it correct?
> >>>
> >>> P.S. box2d function that produce problems is void b2Simplex::Solve3, I
> keep
> >>> only this function "frounded"
> >>>
> >>> --
> >>> You received this message because you are subscribed to the Google
> Groups
> >>> "emscripten-discuss" group.
> >>> To unsubscribe from this group and stop receiving emails from it, send
> an
> >>> email to [email protected].
> >>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to