diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-04-05 12:49:29 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-04-05 12:49:29 +0200 |
commit | 8b5b1277ad5236c6cfe3d43c0529e7a2440f1e25 (patch) | |
tree | 39bfe5cb2f4f814d9e615f61d6dc385b1dd891dc /quickjs-atom.h | |
parent | bf164d640f8835031dbd53a0719413e7dfd0e916 (diff) | |
download | quickjs-8b5b1277ad5236c6cfe3d43c0529e7a2440f1e25.tar.gz quickjs-8b5b1277ad5236c6cfe3d43c0529e7a2440f1e25.zip |
reworked weak references so that cycles are (hopefully) correctly handled - added Symbol as WeakMap key, WeakRef and FinalizationRegistry
Diffstat (limited to 'quickjs-atom.h')
-rw-r--r-- | quickjs-atom.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/quickjs-atom.h b/quickjs-atom.h index 628588e..c3034b6 100644 --- a/quickjs-atom.h +++ b/quickjs-atom.h @@ -210,6 +210,8 @@ DEF(Float32Array, "Float32Array") DEF(Float64Array, "Float64Array") DEF(DataView, "DataView") DEF(BigInt, "BigInt") +DEF(WeakRef, "WeakRef") +DEF(FinalizationRegistry, "FinalizationRegistry") DEF(Map, "Map") DEF(Set, "Set") /* Map + 1 */ DEF(WeakMap, "WeakMap") /* Map + 2 */ |