asm.js fallback fix

This commit is contained in:
Ryan Lester 2018-08-30 16:54:29 -04:00
parent 73687a0044
commit f642149364
No known key found for this signature in database
GPG Key ID: 0A5309A7C2085405

View File

@ -109,9 +109,9 @@ if [ "$DIST" = yes ]; then
};
Module.useBackupModule = function() {
var Module = _Module;
Module.onAbort = undefined;
Module.onRuntimeInitialized = undefined;
Module.useBackupModule = undefined;
Object.keys(Module).forEach(function(k) {
delete Module[k];
});
$(cat "${PREFIX}/lib/libsodium.asm.tmp.js" | sed 's|use asm||g')
};
$(cat "${PREFIX}/lib/libsodium.wasm.tmp.js")