diff --git a/test/suite/es6/Math.fround/Math.fround_NaN.js b/test/suite/es6/Math.fround/Math.fround_NaN.js index 55f958a206288659d1f45af143e4733c05b272a2..783ef78e30e4d8a4111d78fef60a1ee97e4675c1 100644 --- a/test/suite/es6/Math.fround/Math.fround_NaN.js +++ b/test/suite/es6/Math.fround/Math.fround_NaN.js @@ -13,7 +13,7 @@ includes: [runTestCase.js] ---*/ function testcase() { - if(Math.fround(NaN) === NaN) { + if(Number.isNaN(Math.fround(NaN))) { return true; } } diff --git a/test/suite/es6/Math.hypot/Math.hypot_NaN.js b/test/suite/es6/Math.hypot/Math.hypot_NaN.js index 3077ceb2df11ade426e6c78ea6fe7c6f7d97abe3..50e7c3bb5c6d90bd32b8c039f6de02e4dba13791 100644 --- a/test/suite/es6/Math.hypot/Math.hypot_NaN.js +++ b/test/suite/es6/Math.hypot/Math.hypot_NaN.js @@ -15,7 +15,7 @@ includes: [runTestCase.js] ---*/ function testcase() { - if(Math.hypot(NaN, 3) === NaN) { + if(Number.isNaN(Math.hypot(NaN, 3))) { return true; } } diff --git a/test/suite/es6/Math.trunc/Math.trunc_NaN.js b/test/suite/es6/Math.trunc/Math.trunc_NaN.js index 063fd436423833efde21e04e1edd8ba3919527dc..102657f009629b6ad4adeecb92a8c60170ce2e0b 100644 --- a/test/suite/es6/Math.trunc/Math.trunc_NaN.js +++ b/test/suite/es6/Math.trunc/Math.trunc_NaN.js @@ -13,7 +13,7 @@ includes: [runTestCase.js] ---*/ function testcase() { - if(Math.trunc(NaN) === NaN) { + if(Number.isNaN(Math.trunc(NaN))) { return true; } }