asm.js fallback fix

This commit is contained in:
Ryan Lester 2018-08-30 16:54:29 -04:00 committed by Frank Denis
parent 41c87891dc
commit c3aaa3c5c6

View File

@ -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")