From 91e21171c7d4900d904b14dfc79c83aad04aac17 Mon Sep 17 00:00:00 2001 From: Hiromu Yoshiwara Date: Sun, 26 Nov 2017 17:38:27 +0900 Subject: [PATCH] test: make use of Number.isNaN to test-readfloat.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/17310 Reviewed-By: Yosuke Furukawa Reviewed-By: Michaƫl Zasso Reviewed-By: Daijiro Wachi Reviewed-By: Luigi Pinca Reviewed-By: Gireesh Punathil Reviewed-By: Jon Moss Reviewed-By: James M Snell --- test/parallel/test-readfloat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-readfloat.js b/test/parallel/test-readfloat.js index 137eb732678233..bd64bbefb22fda 100644 --- a/test/parallel/test-readfloat.js +++ b/test/parallel/test-readfloat.js @@ -50,7 +50,7 @@ function test(clazz) { buffer[1] = 0xff; buffer[2] = 0x7f; buffer[3] = 0x7f; - assert.ok(isNaN(buffer.readFloatBE(0))); + assert.ok(Number.isNaN(buffer.readFloatBE(0))); assert.strictEqual(3.4028234663852886e+38, buffer.readFloatLE(0)); buffer[0] = 0xab;