Skip to content

Commit

Permalink
Export missing globals for compat
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Feb 3, 2024
1 parent 54885d4 commit 40059d2
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 40059d2

Please sign in to comment.