This simple PR is about making readable-stream compatible with browsers without needing a global polyfill.
Fixes #426
Discussion
Since global objects are available everywhere, I believe that global.Uint8Array can be safely replaced by Uint8Array.
This fixes some issues with browser support, particularly when using this library in a Web worker, or when shimming global is not possible.
Description
This simple PR is about making
readable-stream
compatible with browsers without needing aglobal
polyfill.Fixes #426
Discussion
Since global objects are available everywhere, I believe that
global.Uint8Array
can be safely replaced byUint8Array
. This fixes some issues with browser support, particularly when using this library in a Web worker, or when shimmingglobal
is not possible.