Merge pull request #66 from smikes/Math-isNaN

es6/Math: use Number.isNaN
This commit is contained in:
Brian Terlson 2014-07-31 15:31:42 -07:00
commit 479a6dd442
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ includes: [runTestCase.js]
---*/
function testcase() {
if(Math.fround(NaN) === NaN) {
if(Number.isNaN(Math.fround(NaN))) {
return true;
}
}

View File

@ -15,7 +15,7 @@ includes: [runTestCase.js]
---*/
function testcase() {
if(Math.hypot(NaN, 3) === NaN) {
if(Number.isNaN(Math.hypot(NaN, 3))) {
return true;
}
}

View File

@ -13,7 +13,7 @@ includes: [runTestCase.js]
---*/
function testcase() {
if(Math.trunc(NaN) === NaN) {
if(Number.isNaN(Math.trunc(NaN))) {
return true;
}
}