From 82696ef8c4d1087f9f1bb5aa90040844a3670d84 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 027b0c79..ab91244b 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;