Closed
Bug 583429
Opened 13 years ago
Closed 13 years ago
TM: Array.prototype lost its length property
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: gal, Assigned: gal)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
3.67 KB,
patch
|
brendan
:
review+
|
Details | Diff | Splinter Review |
I changed the code to directly construct a slow array, but that lost the length property, which is only created as a dense array is slowified. Insane.
Assignee | ||
Comment 1•13 years ago
|
||
Assignee: general → gal
Assignee | ||
Comment 2•13 years ago
|
||
Comment on attachment 461730 [details] [diff] [review] patch This patch removes a change I did before (make array.proto be constructed as slow arrays right away).
Attachment #461730 -
Flags: review?(brendan)
Comment 3•13 years ago
|
||
Comment on attachment 461730 [details] [diff] [review] patch The js_InitClass reversion is good, hope we can avoid any special-casing there if we try again to have js_InitArrayClass init js_SlowArrayClass not js_ArrayClass. /be
Attachment #461730 -
Flags: review?(brendan) → review+
Assignee | ||
Comment 4•13 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/8853427f6b39
Whiteboard: fixed-in-tracemonkey
Comment 5•13 years ago
|
||
Test?
Assignee | ||
Comment 6•13 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/0d9fb6efdec6
Comment 7•13 years ago
|
||
I don't think that does what you think it does: you really want Object.getOwnPropertyNames(Array.prototype).indexOf("length") >= 0 Right?
Assignee | ||
Comment 8•13 years ago
|
||
Mhm. Right. That test is a little stupid. Want to fix it? On an iphone.
Assignee | ||
Comment 10•13 years ago
|
||
Thanks =)
Comment 12•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/8853427f6b39
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•