Skip to content

Commit

Permalink
Merge pull request #338 from KevinGulj/master
Browse files Browse the repository at this point in the history
Add WebWorker support for BigInt constructor
  • Loading branch information
odahcam authored Sep 5, 2020
2 parents aebdd4e + 3a61217 commit 9e131ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/pdf417/decoder/DecodedBitStreamParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ function getBigIntConstructor(): BigIntConstructor {
return global['BigInt'] || null;
}

if (typeof self !== 'undefined') {
return self['BigInt'] || null;
}

throw new Error('Can\'t search globals for BigInt!');
}

Expand Down

0 comments on commit 9e131ed

Please sign in to comment.