Skip to content

Commit

Permalink
Use isStreamx()
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Dec 12, 2024
1 parent 93b9b57 commit 89422df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { Readable, getStreamError, isStream, isDisturbed } = require('streamx')
const { Readable, getStreamError, isStreamx, isDisturbed } = require('streamx')

// https://streams.spec.whatwg.org/#readablestreamdefaultreader
exports.ReadableStreamDefaultReader = class ReadableStreamDefaultReader {
Expand Down Expand Up @@ -98,7 +98,7 @@ exports.ReadableStreamDefaultController = class ReadableStreamDefaultController
// https://streams.spec.whatwg.org/#readablestream
exports.ReadableStream = class ReadableStream {
constructor(underlyingSource = {}, queuingStrategy) {
if (isStream(underlyingSource)) {
if (isStreamx(underlyingSource)) {
this._stream = underlyingSource
} else {
if (queuingStrategy === undefined) {
Expand Down

0 comments on commit 89422df

Please sign in to comment.