We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfe0a0b commit 4051bb4Copy full SHA for 4051bb4
src/Platform/Mono/MonoPlatform.ts
@@ -427,7 +427,9 @@ function createEmscriptenModuleInstance(resourceLoader: WebAssemblyResourceLoade
427
timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
428
} catch { }
429
MONO.mono_wasm_setenv("TZ", timeZone || 'UTC');
430
-
+ // Turn off full-gc to prevent browser freezing.
431
+ const mono_wasm_enable_on_demand_gc = cwrap('mono_wasm_enable_on_demand_gc', null, ['number']);
432
+ mono_wasm_enable_on_demand_gc(0);
433
if (resourceLoader.bootConfig.modifiableAssemblies) {
434
// Configure the app to enable hot reload in Development.
435
MONO.mono_wasm_setenv('DOTNET_MODIFIABLE_ASSEMBLIES', resourceLoader.bootConfig.modifiableAssemblies);
0 commit comments