Idan Horowitz
b92871f7ef
LibJS: Visit WeakMap's values as long as their keys were not collected
...
While the WeakMap only holds a weak reference to its keys, their
accompanying values should be kept alive as long as they're accessible.
2021-09-11 18:27:56 +02:00
Andreas Kling
470c99a2a6
LibJS: Tweak the WeakContainer::remove_swept_cells() API a little bit
...
Make this API take a Span<Cell*> instead of a Vector<Cell*>&.
This is behavior neutral, but stops the API looking like it wants to
do mutable things to the Vector.
2021-09-11 12:09:55 +02:00
Andreas Kling
cd53d046b2
LibJS: Fix typo "sweeped" => "swept" everywhere
2021-06-27 22:40:49 +02:00
Idan Horowitz
39554f3787
LibJS: Add the WeakMap built-in object
2021-06-12 10:44:28 +01:00