Closed
Bug 1059555
Opened 10 years ago
Closed 10 years ago
SplayTree forEach can unwittingly copy its callable
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: djvj, Assigned: djvj)
Details
Attachments
(1 file)
999 bytes,
patch
|
bhackett1024
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8480626 -
Flags: review?(bhackett1024)
Updated•10 years ago
|
Attachment #8480626 -
Flags: review?(bhackett1024) → review+
Assignee | ||
Comment 2•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/a2481fd3296c
Comment 3•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/a2481fd3296c
Assignee: nobody → kvijayan
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•