From b5e93ecae8019530faa8cf0e93636418317d275c Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Thu, 29 Nov 2018 22:46:52 -0800 Subject: [PATCH] Improved docs on emscripten memory instantiation --- src/webassembly/instance.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/webassembly/instance.rs b/src/webassembly/instance.rs index 6381f80c9..9381142aa 100644 --- a/src/webassembly/instance.rs +++ b/src/webassembly/instance.rs @@ -468,6 +468,7 @@ impl Instance { let memory = if options.use_emscripten { // We use MAX_PAGES, so at the end the result is: // (initial * LinearMemory::PAGE_SIZE) == LinearMemory::DEFAULT_HEAP_SIZE + // However, it should be: (initial * LinearMemory::PAGE_SIZE) == 16777216 LinearMemory::new(LinearMemory::MAX_PAGES as u32, None) } else {