mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-24 20:45:17 -07:00
asm.js fallback fix
This commit is contained in:
parent
73687a0044
commit
f642149364
@ -109,9 +109,9 @@ if [ "$DIST" = yes ]; then
|
|||||||
};
|
};
|
||||||
Module.useBackupModule = function() {
|
Module.useBackupModule = function() {
|
||||||
var Module = _Module;
|
var Module = _Module;
|
||||||
Module.onAbort = undefined;
|
Object.keys(Module).forEach(function(k) {
|
||||||
Module.onRuntimeInitialized = undefined;
|
delete Module[k];
|
||||||
Module.useBackupModule = undefined;
|
});
|
||||||
$(cat "${PREFIX}/lib/libsodium.asm.tmp.js" | sed 's|use asm||g')
|
$(cat "${PREFIX}/lib/libsodium.asm.tmp.js" | sed 's|use asm||g')
|
||||||
};
|
};
|
||||||
$(cat "${PREFIX}/lib/libsodium.wasm.tmp.js")
|
$(cat "${PREFIX}/lib/libsodium.wasm.tmp.js")
|
||||||
|
Loading…
Reference in New Issue
Block a user