Closed Bug 898621 Opened 11 years ago Closed 11 years ago

Make ToClampedIndex take a HandleValue

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: terrence, Assigned: terrence)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Now that CallArgs::operator[] returns HandleValue, this is zero cost and kills a huge number of unsafe reference warnings.
Attachment #781920 - Flags: review?(sphink)
Comment on attachment 781920 [details] [diff] [review]
to_clamped_index_use_handle-v0.dif

Review of attachment 781920 [details] [diff] [review]:
-----------------------------------------------------------------

This is so clearly wrong that I can't believe you would be idiotic enough to... never mind, just kidding, this is awesome. That operator[] just keeps on giving!
Attachment #781920 - Flags: review?(sphink) → review+
https://hg.mozilla.org/mozilla-central/rev/41730f142283
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: