Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

[stream] Readable.redableFlowing should be nullary #249

Merged
merged 1 commit into from
May 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,12 @@ class ReadableTest extends AnyFunSpec {
it("readableEncoding") {
assert(new ReadStream("package.json").readableEncoding === null)
}

it("readableFlowing") {
val rs = new ReadStream("package.json")
assert(rs.readableFlowing === null)
rs.on("readable", () => {})
assert(rs.readableFlowing === false)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ sealed trait IReadable extends LegacyStream {
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12)
def readableEnded: Boolean = js.native

def readableFlowing: Boolean = js.native
def readableFlowing: Boolean | Null = js.native

def readableHighWaterMark: Double = js.native

Expand Down