Closed
Bug 794065
Opened 8 years ago
Closed 8 years ago
array spread operator messes up holes at the end of the literal
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: Benjamin, Unassigned)
Details
Attachments
(1 file)
2.44 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
var a = [1,2,3]; console.log([...a,,,,]); // [1,2,3] console.log([...a,,,,].length); // 3 console.log([...a,,,,,]); // [1,2,3,,] console.log([...a,,,,,].length); // 5 console.log([...a,,,,,,]); // [1,2,3, , , ] console.log([...a,,,,,,].length); // 6 (Thanks Aaron Frost.)
Attachment #664484 -
Flags: review?(jorendorff)
Updated•8 years ago
|
Attachment #664484 -
Flags: review?(jorendorff) → review+
Reporter | ||
Comment 1•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5515b887c42c
Comment 2•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5515b887c42c
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in
before you can comment on or make changes to this bug.
Description
•