Closed Bug 621061 Opened 11 years ago Closed 2 years ago

shell: need primitive for returning integer-valued double

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: vlad, Assigned: anba)

Details

Attachments

(1 file)

See bug 612334 comment 22 -- for functions that need integers, it's helpful to be able to return a double that has an integer value to make sure that the right thing happens.  Currently, Math.sqrt(4) can be used for this purpose, but in case that changes it would be useful to have a consistent way to do this.
Assignee: general → nobody
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Pushed by rmaries@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/60b537916465
Add a testing function to return a double-typed number. r=jandem
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.