Bnaya/objectbuffer

Fix Set/Map delete on iteration

Bnaya opened this issue · 2 comments

Bnaya commented

Currently deleting the current iterated item on Map/Set will lead to skip the next item.

To fix that we need:

  • Allocate iterator inside the ArrayBuffer
  • Update the iterator on delete
  • add deallocation of that iterator on iteration end, manual, and on finalizationGroup
    For now its a known limitation

Anything update on it?🙏

Anything update on it?🙏

It's a hard-fix, maybe you can work with a append only strategy, and increment a counter to the latest message that wasn't red yet