Skip to content

Commit 2de7d96

Browse files
committed
rebuild
Signed-off-by: Matteo Collina <[email protected]>
1 parent dd264f7 commit 2de7d96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/_stream_readable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var Stream = require('./internal/streams/stream');
4141
/*</replacement>*/
4242

4343
const Buffer = require('buffer').Buffer;
44-
const OurUint8Array = global.Uint8Array || function () {};
44+
const OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {};
4545
function _uint8ArrayToBuffer(chunk) {
4646
return Buffer.from(chunk);
4747
}

lib/_stream_writable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ var Stream = require('./internal/streams/stream');
6363
/*</replacement>*/
6464

6565
const Buffer = require('buffer').Buffer;
66-
const OurUint8Array = global.Uint8Array || function () {};
66+
const OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {};
6767
function _uint8ArrayToBuffer(chunk) {
6868
return Buffer.from(chunk);
6969
}

0 commit comments

Comments
 (0)