We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
global
1 parent 5ac5ac4 commit e3c6f06Copy full SHA for e3c6f06
index.js
@@ -38,10 +38,10 @@ exports.constants = {
38
MAX_STRING_LENGTH: K_STRING_MAX_LENGTH
39
}
40
41
-exports.Blob = global.Blob
42
-exports.File = global.File
43
-exports.atob = global.atob
44
-exports.btoa = global.btoa
+exports.Blob = typeof Blob !== 'undefined' ? Blob : undefined
+exports.File = typeof File !== 'undefined' ? File : undefined
+exports.atob = typeof atob !== 'undefined' ? atob : undefined
+exports.btoa = typeof btoa !== 'undefined' ? btoa : undefined
45
46
/**
47
* If `Buffer.TYPED_ARRAY_SUPPORT`:
0 commit comments