File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const { inspect } = require('util');
2828
2929const is = {
3030 number : ( value , key ) => {
31- assert ( ! isNaN ( value ) , `${ key } should not be NaN` ) ;
31+ assert ( ! Number . isNaN ( value ) , `${ key } should not be NaN` ) ;
3232 assert . strictEqual ( typeof value , 'number' ) ;
3333 } ,
3434 string : ( value ) => { assert . strictEqual ( typeof value , 'string' ) ; } ,
Original file line number Diff line number Diff line change @@ -72,12 +72,12 @@ function test(clazz) {
7272 buffer [ 5 ] = 0xff ;
7373 buffer [ 6 ] = 0x0f ;
7474 buffer [ 7 ] = 0x00 ;
75- assert . ok ( isNaN ( buffer . readDoubleBE ( 0 ) ) ) ;
75+ assert . ok ( Number . isNaN ( buffer . readDoubleBE ( 0 ) ) ) ;
7676 assert . strictEqual ( 2.225073858507201e-308 , buffer . readDoubleLE ( 0 ) ) ;
7777
7878 buffer [ 6 ] = 0xef ;
7979 buffer [ 7 ] = 0x7f ;
80- assert . ok ( isNaN ( buffer . readDoubleBE ( 0 ) ) ) ;
80+ assert . ok ( Number . isNaN ( buffer . readDoubleBE ( 0 ) ) ) ;
8181 assert . strictEqual ( 1.7976931348623157e+308 , buffer . readDoubleLE ( 0 ) ) ;
8282
8383 buffer [ 0 ] = 0 ;
Original file line number Diff line number Diff line change @@ -127,8 +127,8 @@ function test(clazz) {
127127 // Darwin ia32 does the other kind of NaN.
128128 // Compiler bug. No one really cares.
129129 assert ( 0x7F === buffer [ 7 ] || 0xFF === buffer [ 7 ] ) ;
130- assert . ok ( isNaN ( buffer . readFloatBE ( 0 ) ) ) ;
131- assert . ok ( isNaN ( buffer . readFloatLE ( 4 ) ) ) ;
130+ assert . ok ( Number . isNaN ( buffer . readFloatBE ( 0 ) ) ) ;
131+ assert . ok ( Number . isNaN ( buffer . readFloatLE ( 4 ) ) ) ;
132132}
133133
134134
You can’t perform that action at this time.
0 commit comments