Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
Merge 15ac861 into 00ba00d
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrouid committed Dec 20, 2019
2 parents 00ba00d + 15ac861 commit 06d1381
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ function node8(buf: Buffer): ArrayBuffer {
}

function parseNodeVersion() : number {
if (typeof process === 'undefined' || typeof process.version === 'undefined') {
return 0;
}
let ma = process.version.match(/^v(\d+).+/i);
if(ma && ma.length > 1) {
return parseInt(ma[1], 10);
Expand Down

0 comments on commit 06d1381

Please sign in to comment.