Fix other issues with emscripten integration

This commit is contained in:
Steve Akinyemi
2019-01-11 20:47:41 +01:00
parent ba6828c3d4
commit 927f6e4155
5 changed files with 117 additions and 115 deletions

View File

@ -9,7 +9,7 @@ use std::slice;
/// We check if a provided module is an Emscripten generated one
pub fn is_emscripten_module(module: &Module) -> bool {
for (_, import_name) in &module.imported_functions {
if import_name.name == "_emscripten_memcpy_big" && import_name.module == "env" {
if import_name.name == "_emscripten_memcpy_big" && import_name.namespace == "env" {
return true;
}
}