In ES6, `Number.parseInt` and `Number.parseFloat` have been added, and are the same as the global functions of the same names (purpose is modularization of globals).
See ES6 spec (May 2013 revision) sections 22.214.171.124 and 126.96.36.199.
Created attachment 771686 [details] [diff] [review]
Add Number.parseInt and Number.parseFloat
This is all very straight-forward.
As these are meant to behave identical to their global function counterparts, I just added them to number_static_methods.
In case they ever deviate from the global functions in any way, the duplicated tests should catch any errors that might otherwise sneak in.
Assuming this does not need QA. Please remove the [qa-] whiteboard tag and add the verifyme keyword if QA is needed.
Added to "Firefox 25 for developer" release notes:
Updated reference docs:
As always, feel free to review and/or edit these pages in the MDN wiki.