We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
null
1 parent 3929888 commit f17d8edCopy full SHA for f17d8ed
lib/node_modules/@stdlib/buffer/from-arraybuffer/lib/node_version.js
@@ -7,7 +7,7 @@ var NODE_VERSION = require( '@stdlib/process/node-version' );
7
8
// MAIN //
9
10
-var MAJOR = parseInt( NODE_VERSION.split( '.' )[ 0 ], 10 );
+var MAJOR = ( NODE_VERSION ) ? parseInt( NODE_VERSION.split( '.' )[ 0 ], 10 ) : -1;
11
12
13
// EXPORTS //
0 commit comments