emscripten: setting Module.TOTAL_MEMORY doesn't do anything

This commit is contained in:
Frank Denis 2023-02-15 19:51:55 +01:00
parent abfbcab412
commit 6318c8c6af

View File

@ -95,9 +95,6 @@ if [ "$DIST" = yes ]; then
root = window;
}
}
if (typeof root['sodium'] === 'object' && typeof root['sodium']['totalMemory'] === 'number') {
Module['TOTAL_MEMORY'] = root['sodium']['totalMemory'];
}
var _Module = Module;
Module.ready = new Promise(function(resolve, reject) {
var Module = _Module;