Closed
Bug 1171036
Opened 10 years ago
Closed 10 years ago
Change GetLengthProperty slow path to use ToLengthClamped instead of ToUint32.
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: jorendorff, Assigned: jorendorff)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
2.51 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8614696 -
Flags: review?(jwalden+bmo)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jorendorff
Status: NEW → ASSIGNED
Comment 2•10 years ago
|
||
Comment on attachment 8614696 [details] [diff] [review]
Change GetLengthProperty slow path to use ToLengthClamped instead of ToUint32
Review of attachment 8614696 [details] [diff] [review]:
-----------------------------------------------------------------
Add the 924058 reference as a comment by GetLengthProperty's declaration somewhere, or something?
::: js/src/tests/ecma_5/Array/unshift-01.js
@@ +13,5 @@
> * BEGIN TEST *
> **************/
>
> +// ES6 ToLength clamps length values to 2^53 - 1.
> +// We currently clamp to 2^32 - 1 instead. See bug 924058.
Isn't the limit we enforce actually 2**32 - 2? Probably need to change MAX_LENGTH here, too, right?
Attachment #8614696 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Assignee | ||
Comment 4•10 years ago
|
||
Comment 6•10 years ago
|
||
sorry had to back this out in https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=65e6e21a4725 i think that something in this push caused test failures like https://treeherder.mozilla.org/logviewer.html#?job_id=10872015&repo=mozilla-inbound
Flags: needinfo?(jorendorff)
Assignee | ||
Comment 7•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(jorendorff)
You need to log in
before you can comment on or make changes to this bug.
Description
•