diff options
Diffstat (limited to 'cli/rt/11_streams.js')
-rw-r--r-- | cli/rt/11_streams.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cli/rt/11_streams.js b/cli/rt/11_streams.js index e5a5732e5..7f8af19e2 100644 --- a/cli/rt/11_streams.js +++ b/cli/rt/11_streams.js @@ -388,7 +388,7 @@ let { highWaterMark } = strategy; const { type } = underlyingSource; - if (isUnderlyingByteSource(underlyingSource)) { + if (underlyingSource.type == "bytes") { if (size !== undefined) { throw new RangeError( `When underlying source is "bytes", strategy.size must be undefined.`, @@ -1226,14 +1226,6 @@ ); } - function isUnderlyingByteSource( - underlyingSource, - ) { - const { type } = underlyingSource; - const typeString = String(type); - return typeString === "bytes"; - } - function isWritableStream(x) { return !( typeof x !== "object" || |