asmcrypto / asmcrypto.js

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

global.Date is undefined when using the npm package in a browser environment #131

Closed xaviergonz closed 6 years ago

xaviergonz commented 6 years ago

When requiring the npm package 'asmcrypto.js' from a browser environment using a bundle (fusebox more specifically) global.Date is not available and therefore global.Date.now fails.

The same code runs without issues on 0.0.11.

xaviergonz commented 6 years ago

Also the new version seems to polyfill window.crypto on the browser, making the native window.crypto.subtle.digest unavailable on chrome.

xaviergonz commented 6 years ago

Fixed with 0.16.0