Closed Bug 1059555 Opened 6 years ago Closed 6 years ago
Tree for Each can unwittingly copy its callable
js/src/ds/SplayTree has this issue where its forEach method can copy the callable struct it gets called with. This makes it useless for doing things like using forEach to calculate the size of the splay tree, since the callable needs to be passed by reference to maintain the coherency of a count variable.
Attachment #8480626 - Flags: review?(bhackett1024) → review+
Assignee: nobody → kvijayan
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.