Skip to content

Commit f17d8ed

Browse files
committed
Fix null bug
1 parent 3929888 commit f17d8ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/buffer/from-arraybuffer/lib/node_version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var NODE_VERSION = require( '@stdlib/process/node-version' );
77

88
// MAIN //
99

10-
var MAJOR = parseInt( NODE_VERSION.split( '.' )[ 0 ], 10 );
10+
var MAJOR = ( NODE_VERSION ) ? parseInt( NODE_VERSION.split( '.' )[ 0 ], 10 ) : -1;
1111

1212

1313
// EXPORTS //

0 commit comments

Comments
 (0)