config: null,
preInit: async function() {
- Module.config = await MONO.mono_wasm_load_config("./mono-config.json");
+ await MONO.mono_wasm_load_config("./mono-config.json"); // sets Module.config implicitly
},
// Called when the runtime is initialized and wasm is ready
config: null,
preInit: async function() {
- Module.config = await MONO.mono_wasm_load_config("./mono-config.json");
+ await MONO.mono_wasm_load_config("./mono-config.json"); // sets Module.config implicitly
},
// Called when the runtime is initialized and wasm is ready
config: null,
preInit: async function() {
- Module.config = await MONO.mono_wasm_load_config("./mono-config.json");
+ await MONO.mono_wasm_load_config("./mono-config.json"); // sets Module.config implicitly
},
// Called when the runtime is initialized and wasm is ready
config: null,
preInit: async function() {
- Module.config = await MONO.mono_wasm_load_config("./mono-config.json");
+ await MONO.mono_wasm_load_config("./mono-config.json"); // sets Module.config implicitly
},
// Called when the runtime is initialized and wasm is ready
config: null,
preInit: async function() {
- Module.config = await MONO.mono_wasm_load_config("./mono-config.json");
+ await MONO.mono_wasm_load_config("./mono-config.json"); // sets Module.config implicitly
},
// Called when the runtime is initialized and wasm is ready
printErr,
preInit: async function() {
- Module.config = await MONO.mono_wasm_load_config("./mono-config.json");
+ await MONO.mono_wasm_load_config("./mono-config.json"); // sets Module.config implicitly
},
onAbort: function(x) {
} else { // shell or worker
config = JSON.parse(read(configFilePath)); // read is a v8 debugger command
}
- return config;
+ Module.config = config;
} catch(e) {
- return {message: "failed to load config file", error: e};
+ Module.config = {message: "failed to load config file", error: e};
} finally {
Module.removeRunDependency(configFilePath);
}
config: null,
preInit: async function() {
- Module.config = await MONO.mono_wasm_load_config("./mono-config.json");
+ await MONO.mono_wasm_load_config("./mono-config.json"); // sets Module.config implicitly
},
onRuntimeInitialized: function () {
config: null,
preInit: async function() {
- Module.config = await MONO.mono_wasm_load_config("./mono-config.json");
+ await MONO.mono_wasm_load_config("./mono-config.json"); // sets Module.config implicitly
},
onRuntimeInitialized: function () {
config: null,
preInit: async function() {
- Module.config = await MONO.mono_wasm_load_config("./mono-config.json");
+ await MONO.mono_wasm_load_config("./mono-config.json"); // sets Module.config implicitly
},
onRuntimeInitialized: function () {