Skip to content

Commit 2408c6f

Browse files
committed
upd
1 parent 605cee1 commit 2408c6f

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

notes/global-objects.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,13 @@
143143
- [ ] `equals(o)` - Structural equality
144144
- [ ] `clear()`
145145
- [ ] `clone(deep=)`
146-
- [ ] FinalizationRegistry (as in JS)
147-
- [ ] See https://github.com/shockscript/plans/tree/master/runtime/FinalizationRegistry.md
148-
- [ ] Weak (WeakRef as in JS)
149-
- [ ] https://github.com/shockscript/plans/tree/master/runtime/FinalizationRegistry.md
146+
- [ ] Finalizer (for when an Object is garbage collected; API similar to JavaScript FinalizationRegistry)
147+
- [ ] Mark as final
148+
- [ ] `new Finalizer(function(held) {})`
149+
- [ ] `track(o:Object, held:* = undefined, untrackToken:* = undefined):void`
150+
- [ ] `untrack(untrackToken:*)`
151+
- [ ] See https://github.com/shockscript/plans/tree/master/runtime/Finalizer.md
152+
- [ ] Weak (weak reference)
150153
- [ ] Math
151154
- [ ] `random()`
152155
- [ ] `random(start, end)` (inclusive; most Number types supported)

0 commit comments

Comments
 (0)