1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

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 07b4176eca
commit 82696ef8c4

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;