Merged PR 9531: Merge remote-tracking branch 'origin/release/5.0-preview8'

This commit is contained in:
Pranav Krishnamoorthy 2020-08-04 23:03:14 +00:00 committed by Matt Mitchell
commit 7f8e21fcb0
2 changed files with 6 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -379,6 +379,11 @@ function createEmscriptenModuleInstance(resourceLoader: WebAssemblyResourceLoade
resourceLoader.purgeUnusedCacheEntriesAsync(); // Don't await - it's fine to run in background
MONO.mono_wasm_setenv("MONO_URI_DOTNETRELATIVEORABSOLUTE", "true");
// 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);
let timeZone = "UTC";
try {
timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;