Eable post-MVP feature wasm-c-api (#315)

This commit is contained in:
lum1n0us
2020-07-23 16:54:13 +08:00
committed by GitHub
parent 32b2943369
commit 08d01b65c5
26 changed files with 4405 additions and 39 deletions

View File

@ -1095,9 +1095,11 @@ load_global_import(const WASMModule *parent_module,
#endif
if (!ret) {
#if WASM_ENABLE_SPEC_TEST != 0
set_error_buf_v(error_buf, error_buf_size,
"unknown import or incompatible import type");
return false;
#endif
}
global->module_name = sub_module_name;

View File

@ -995,9 +995,6 @@ wasm_instantiate(WASMModule *module, bool is_sub_inst,
error_buf, error_buf_size))) {
return NULL;
}
LOG_DEBUG("Instantiate a module %p -> %p", module, module_inst);
memset(module_inst, 0, (uint32)sizeof(WASMModuleInstance));
module_inst->module = module;