Closed larsbrinkhoff closed 7 years ago
@pipcet, does this look like the right fix?
I think that would make the code invalid asm.js, and result in much slower execution on those engines that special-case asm.js.
So I think it makes more sense to either override it in run()
or to redefine Math.imul globally.
It does seem slow. Maybe one second from "lbForth" to first "ok".
The asm.js target doesn't work in IE11 due to a missing
Math.imul
.Here's a replacement: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Math/imul