5 lines
132 B
JavaScript
5 lines
132 B
JavaScript
|
import { assert } from "./assert.js"
|
||
|
const ref = new WeakRef({})
|
||
|
const val = ref.deref() // should not throw
|
||
|
assert(val, undefined)
|