Fix emscripten lib compilation

This commit is contained in:
Brandon Fish 2019-03-03 15:18:16 -06:00
parent 97a70327d0
commit 3f345b41c2

View File

@ -341,7 +341,7 @@ impl EmscriptenGlobals {
if name == "abortOnCannotGrowMemory" && namespace == "env" { if name == "abortOnCannotGrowMemory" && namespace == "env" {
let sig_index = module.info().func_assoc[index.convert_up(module.info())]; let sig_index = module.info().func_assoc[index.convert_up(module.info())];
let expected_sig = &module.info().signatures[sig_index]; let expected_sig = &module.info().signatures[sig_index];
if **expected_sig == *OLD_ABORT_ON_CANNOT_GROW_MEMORY_SIG { if *expected_sig == *OLD_ABORT_ON_CANNOT_GROW_MEMORY_SIG {
use_old_abort_on_cannot_grow_memory = true; use_old_abort_on_cannot_grow_memory = true;
} }
break; break;