asmcrypto / asmcrypto.js

JavaScript Cryptographic Library with performance in mind.
MIT License
659 stars 182 forks source link

create new object for asm.js stdlib #107

Closed MikeHolman closed 7 years ago

MikeHolman commented 8 years ago

Rather than directly passing the global object, this change refactors to only pass the necessary properties to the asm.js modules.

This works around a bug in Edge which causes a large slowdown on asm.js applications when using the global object for the stdlib, unless you are running with experimental JS features enabled.

I have a PR to fix the bug in Chakra as well (https://github.com/Microsoft/ChakraCore/pull/1555), but it will take some time before that makes its way back into Edge.