From: Christopher Jeffrey (JJ) Date: Mon, 5 Feb 2024 03:16:47 +0000 (-0500) Subject: Export missing globals for compat (#347) X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=d0092f7c8cf59e1528dd2a872be853ae6d9b272a;p=buffer.git Export missing globals for compat (#347) --- diff --git a/index.js b/index.js index 1d4b5ea..58f331e 100644 --- a/index.js +++ b/index.js @@ -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)