From c7dbb869a2669f72a516bda7767d6e7bf934f136 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 --- 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 45da9bff13a42b..ce7469977ead85 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;