Skip to content

Commit 81d6e5f

Browse files
committed
Depend on the new runtime APIs
blazorwasm and the runtime must be in lockstep. There's no supported scenario where the API might be missing
1 parent 7676282 commit 81d6e5f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,7 @@ class MonoHeapLock implements HeapLock {
556556
throw new Error('Trying to release a lock which isn\'t current');
557557
}
558558

559-
if (typeof MONO_INTERNAL !== 'undefined' && typeof MONO_INTERNAL.mono_wasm_gc_unlock === 'function') {
560-
MONO_INTERNAL.mono_wasm_gc_unlock();
561-
}
559+
MONO_INTERNAL.mono_wasm_gc_unlock();
562560

563561
currentHeapLock = null;
564562

@@ -574,9 +572,7 @@ class MonoHeapLock implements HeapLock {
574572
}
575573

576574
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-
}
575+
MONO_INTERNAL.mono_wasm_gc_lock();
580576
return new MonoHeapLock();
581577
}
582578
}

0 commit comments

Comments
 (0)