Sneed Group Holder
e18d08e951
Some checks are pending
ci / Linux (Ubuntu) (push) Waiting to run
ci / linux-asan (push) Waiting to run
ci / linux-msan (push) Waiting to run
ci / linux-ubsan (push) Waiting to run
ci / macOS (push) Waiting to run
ci / macos-asan (push) Waiting to run
ci / macos-ubsan (push) Waiting to run
ci / freebsd (push) Waiting to run
ci / qemu-alpine (arm32v6) (push) Waiting to run
ci / qemu-alpine (arm32v7) (push) Waiting to run
ci / qemu-alpine (arm64v8) (push) Waiting to run
ci / qemu-alpine (i386) (push) Waiting to run
ci / qemu-alpine (s390x) (push) Waiting to run
13 lines
369 B
JavaScript
13 lines
369 B
JavaScript
/*---
|
|
negative:
|
|
phase: runtime
|
|
type: Error
|
|
---*/
|
|
let finrec = new FinalizationRegistry(v => {})
|
|
let object = {object:"object"}
|
|
finrec.register(object, {held:"held"}, {token:"token"})
|
|
object = undefined
|
|
// abrupt termination should not leak |held|
|
|
// unfortunately only shows up in qjs, not run-test262,
|
|
// but still good to have a regression test
|
|
throw Error("ok")
|