useBackupModule getRandomValue fix
This commit is contained in:
parent
9771795351
commit
34cbaa8dcd
@ -110,7 +110,9 @@ if [ "$DIST" = yes ]; then
|
|||||||
Module.useBackupModule = function() {
|
Module.useBackupModule = function() {
|
||||||
var Module = _Module;
|
var Module = _Module;
|
||||||
Object.keys(Module).forEach(function(k) {
|
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')
|
$(cat "${PREFIX}/lib/libsodium.asm.tmp.js" | sed 's|use asm||g')
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user