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 7676282 commit 81d6e5fCopy full SHA for 81d6e5f
src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts
@@ -556,9 +556,7 @@ class MonoHeapLock implements HeapLock {
556
throw new Error('Trying to release a lock which isn\'t current');
557
}
558
559
- if (typeof MONO_INTERNAL !== 'undefined' && typeof MONO_INTERNAL.mono_wasm_gc_unlock === 'function') {
560
- MONO_INTERNAL.mono_wasm_gc_unlock();
561
- }
+ MONO_INTERNAL.mono_wasm_gc_unlock();
562
563
currentHeapLock = null;
564
@@ -574,9 +572,7 @@ class MonoHeapLock implements HeapLock {
574
572
575
573
576
static create(): MonoHeapLock {
577
- if (typeof MONO_INTERNAL !== 'undefined' && typeof MONO_INTERNAL.mono_wasm_gc_lock === 'function') {
578
- MONO_INTERNAL.mono_wasm_gc_lock();
579
+ MONO_INTERNAL.mono_wasm_gc_lock();
580
return new MonoHeapLock();
581
582
0 commit comments