Skip to content

Commit 3e8d0d6

Browse files
committed
1. add WeakRef implementation
2. Refactor JSObject weak reference list to support different kind of weak reference 3. Support Symbol as WeakMap key x
1 parent 012451d commit 3e8d0d6

File tree

6 files changed

+367
-60
lines changed

6 files changed

+367
-60
lines changed

Diff for: doc/quickjs.texi

+1-3
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,7 @@ The following features are not supported yet:
281281

282282
@item Tail calls@footnote{We believe the current specification of tails calls is too complicated and presents limited practical interests.}
283283

284-
@item WeakRef and FinalizationRegistry objects
285-
286-
@item Symbols as WeakMap keys
284+
@item FinalizationRegistry objects
287285

288286
@end itemize
289287

Diff for: quickjs-atom.h

+1
Original file line numberDiff line numberDiff line change
@@ -269,5 +269,6 @@ DEF(Symbol_asyncIterator, "Symbol.asyncIterator")
269269
#ifdef CONFIG_BIGNUM
270270
DEF(Symbol_operatorSet, "Symbol.operatorSet")
271271
#endif
272+
DEF(WeakRef, "WeakRef")
272273

273274
#endif /* DEF */

0 commit comments

Comments
 (0)