We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eb8080 commit 155c005Copy full SHA for 155c005
lib/recognize-stream.ts
@@ -133,12 +133,14 @@ class RecognizeStream extends Duplex {
133
constructor(options) {
134
// this stream only supports objectMode on the output side.
135
// It must receive binary data input.
136
- super(options);
137
if (options.objectMode) {
138
options.readableObjectMode = true;
139
- this.readableObjectMode = true;
140
delete options.objectMode;
141
}
+ super(options);
+ if (options.readableObjectMode && this.readableObjectMode === undefined) {
142
+ this.readableObjectMode = true;
143
+ }
144
this.options = options;
145
this.listening = false;
146
this.initialized = false;
0 commit comments