Closed
Bug 830967
Opened 12 years ago
Closed 12 years ago
Array.concat ignores sparse elements in 'this' value
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: bhackett1024, Assigned: bhackett1024)
References
Details
Attachments
(1 file)
(deleted),
patch
|
billm
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•12 years ago
|
||
Oh, hit return too fast. See bug 827490 comments 30 and 31. Array.concat tries to be fast when the 'this' value is an array and quickly copy its elements to the result and reuse its type, but after bug 827490 this optimization misfires and ignores sparse elements on the 'this' array.
Assignee | ||
Comment 2•12 years ago
|
||
Fix. I checked the other callers of NewDenseCopiedArray and none have this problem.
Assignee: general → bhackett1024
Attachment #702491 -
Flags: review?(wmccloskey)
Comment on attachment 702491 [details] [diff] [review]
patch
Review of attachment 702491 [details] [diff] [review]:
-----------------------------------------------------------------
Can you assert in NewDenseCopiedArray that !obj->isIndexed()?
Attachment #702491 -
Flags: review?(wmccloskey) → review+
Assignee | ||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•