Clean create-exe code a bit

This commit is contained in:
Mark McCaskey
2020-10-12 15:53:46 -07:00
parent a0b237c1f6
commit 81fd4fc042
5 changed files with 32 additions and 30 deletions

View File

@@ -111,7 +111,7 @@ int main(int argc, char* argv[]) {
wasm_engine_t* engine = wasm_engine_new_with_config(config);
wasm_store_t* store = wasm_store_new(engine);
wasm_module_t* module = wasmer_object_file_engine_new(store, "qjs.wasm");
wasm_module_t* module = wasmer_object_file_engine_new(store, argv[0]);
if (! module) {
fprintf(stderr, "Failed to create module\n");
print_wasmer_error();