mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Merge pull request #66 from smikes/Math-isNaN
es6/Math: use Number.isNaN
This commit is contained in:
commit
479a6dd442
@ -13,7 +13,7 @@ includes: [runTestCase.js]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
if(Math.fround(NaN) === NaN) {
|
if(Number.isNaN(Math.fround(NaN))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ includes: [runTestCase.js]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
if(Math.hypot(NaN, 3) === NaN) {
|
if(Number.isNaN(Math.hypot(NaN, 3))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ includes: [runTestCase.js]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
if(Math.trunc(NaN) === NaN) {
|
if(Number.isNaN(Math.trunc(NaN))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user