We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5c75a3 commit 20373c4Copy full SHA for 20373c4
lib/stream.js
@@ -49,7 +49,10 @@ try {
49
} else {
50
// This throws for Node < 4.2.0 because there's no util binding and
51
// returns undefined for Node < 7.4.0.
52
- Stream._isUint8Array = internalBinding('util').isUint8Array;
+ // Please do not convert process.binding() to internalBinding() here.
53
+ // This is for compatibility with older versions when loaded as
54
+ // readable-stream.
55
+ Stream._isUint8Array = process.binding('util').isUint8Array;
56
}
57
} catch (e) {
58
0 commit comments