useBackupModule getRandomValue fix

This commit is contained in:
Ryan Lester 2018-09-29 18:22:42 -04:00
parent 9771795351
commit 34cbaa8dcd
No known key found for this signature in database
GPG Key ID: 0A5309A7C2085405

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')
};