workaround for error caused by latest emscripten
This commit is contained in:
parent
d9eec819b4
commit
d257ec5780
@ -116,13 +116,16 @@ if [ "$DIST" = yes ]; then
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
Module.useBackupModule = function() {
|
Module.useBackupModule = function() {
|
||||||
var Module = _Module;
|
var Module = {};
|
||||||
Object.keys(Module).forEach(function(k) {
|
$(cat "${PREFIX}/lib/libsodium.asm.tmp.js" | sed 's|use asm||g')
|
||||||
|
Object.keys(_Module).forEach(function(k) {
|
||||||
if (k !== 'getRandomValue') {
|
if (k !== 'getRandomValue') {
|
||||||
delete Module[k];
|
delete _Module[k];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$(cat "${PREFIX}/lib/libsodium.asm.tmp.js" | sed 's|use asm||g')
|
Object.keys(Module).forEach(function(k) {
|
||||||
|
_Module[k] = Module[k];
|
||||||
|
});
|
||||||
};
|
};
|
||||||
$(cat "${PREFIX}/lib/libsodium.wasm.tmp.js")
|
$(cat "${PREFIX}/lib/libsodium.wasm.tmp.js")
|
||||||
}).catch(function() {
|
}).catch(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user