From 6318c8c6af1be8b2727a49c73ecf5519772b19d4 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 15 Feb 2023 19:51:55 +0100 Subject: [PATCH] emscripten: setting Module.TOTAL_MEMORY doesn't do anything --- dist-build/emscripten.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/dist-build/emscripten.sh b/dist-build/emscripten.sh index 3f5d8ded..8ff63f9d 100755 --- a/dist-build/emscripten.sh +++ b/dist-build/emscripten.sh @@ -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;