diff --git a/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts b/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts index 7c7d5c7a70e0..8c3d37ddc2d3 100644 --- a/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts +++ b/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts @@ -426,9 +426,6 @@ function createEmscriptenModuleInstance(resourceLoader: WebAssemblyResourceLoade timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone; } catch { } MONO.mono_wasm_setenv("TZ", timeZone || 'UTC'); - // Turn off full-gc to prevent browser freezing. - const mono_wasm_enable_on_demand_gc = cwrap('mono_wasm_enable_on_demand_gc', null, ['number']); - mono_wasm_enable_on_demand_gc(0); const load_runtime = cwrap('mono_wasm_load_runtime', null, ['string', 'number']); // -1 enables debugging with logging disabled. 0 disables debugging entirely. load_runtime(appBinDirName, hasDebuggingEnabled() ? -1 : 0);