useBackupModule getRandomValue fix

This commit is contained in:
Ryan Lester 2018-09-29 18:22:42 -04:00 committed by Frank Denis
parent 70d52cbea2
commit 2a8c2426b5

View File

@ -110,7 +110,9 @@ if [ "$DIST" = yes ]; then
Module.useBackupModule = function () {
var Module = _Module;
Object.keys(Module).forEach(function(k) {
delete Module[k];
if (k !== 'getRandomValue') {
delete Module[k];
}
});
$(cat "${PREFIX}/lib/libsodium.asm.tmp.js" | sed 's|use asm||g')
};