quickjs-done/tests/bug652.js

5 lines
132 B
JavaScript
Raw Permalink Normal View History

2025-01-06 20:48:15 +00:00
import { assert } from "./assert.js"
const ref = new WeakRef({})
const val = ref.deref() // should not throw
assert(val, undefined)