@deno/sham-weakref

WeakRef sham that uses the global WeakRef if it exists.

Usage no npm install needed!

<script type="module">
  import denoShamWeakref from 'https://cdn.skypack.dev/@deno/sham-weakref';
</script>

README

@deno/sham-weakref

Sham for WeakRef. It is not possible to shim WeakRef in old node environments, so this module provides a sham to allow the code to compile, but it will throw when used. The sham will use the global WeakRef if it exists though.