Upgrade Number constructor to ES6.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 8 Jan 2014 09:09:49 +0000 (09:09 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 8 Jan 2014 09:09:49 +0000 (09:09 +0000)
commit127c660eabffe445ba2aa4ae14e746c514011482
treeb5620537191aa6616a3e211ff88b71895bed603a
parentb71277947915c4ba7f7397e6d7682b5dd244fd15
Upgrade Number constructor to ES6.

Add missing constants, predicates and functions to the Number
constructor to have it offer what ES6 now specifies.

That is, extend it with:

 * isInteger(), isSafeInteger()
 * parseInt(), parseFloat()
 * EPSILON, MIN_SAFE_INTEGER, MAX_SAFE_INTEGER

LOG=N
R=mstarzinger@chromium.org
BUG=v8:3082

Review URL: https://codereview.chromium.org/124573002

Patch from Sigbjorn Finne <sigbjornf@opera.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18480 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/v8natives.js
test/mjsunit/math-floor-part1.js
test/mjsunit/math-round.js
test/mjsunit/number-is.js
test/mjsunit/parse-int-float.js