Skip to content

Commit

Permalink
Export missing globals for compat (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Feb 5, 2024
1 parent c7eee05 commit d0092f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ exports.constants = {
MAX_STRING_LENGTH: K_STRING_MAX_LENGTH
}

exports.Blob = global.Blob
exports.File = global.File
exports.atob = global.atob
exports.btoa = global.btoa

/**
* If `Buffer.TYPED_ARRAY_SUPPORT`:
* === true Use Uint8Array implementation (fastest)
Expand Down

0 comments on commit d0092f7

Please sign in to comment.