diff options
author | 2023-05-30 13:41:52 -0700 | |
---|---|---|
committer | 2023-05-30 13:41:52 -0700 | |
commit | 79d7b2075e63f79ec6d1d2a904178969eb701f0b (patch) | |
tree | 4b1d73465d4f03862d7a77814e7e0c563f8e74cb /src/bun.js/builtins/ts/ReadableByteStreamInternals.ts | |
parent | b0c38a3c1583134d4632783c207f02c9bab28782 (diff) | |
download | bun-79d7b2075e63f79ec6d1d2a904178969eb701f0b.tar.gz bun-79d7b2075e63f79ec6d1d2a904178969eb701f0b.tar.zst bun-79d7b2075e63f79ec6d1d2a904178969eb701f0b.zip |
Port changes from https://github.com/WebKit/WebKit/pull/14473
Diffstat (limited to 'src/bun.js/builtins/ts/ReadableByteStreamInternals.ts')
-rw-r--r-- | src/bun.js/builtins/ts/ReadableByteStreamInternals.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/builtins/ts/ReadableByteStreamInternals.ts b/src/bun.js/builtins/ts/ReadableByteStreamInternals.ts index f44c385b4..b2c36922c 100644 --- a/src/bun.js/builtins/ts/ReadableByteStreamInternals.ts +++ b/src/bun.js/builtins/ts/ReadableByteStreamInternals.ts @@ -372,7 +372,7 @@ export function readableByteStreamControllerRespondWithNewView(controller, view) export function readableByteStreamControllerRespond(controller, bytesWritten) { bytesWritten = $toNumber(bytesWritten); - if (isNaN(bytesWritten) || bytesWritten === Infinity || bytesWritten < 0) + if (bytesWritten !== bytesWritten || bytesWritten === Infinity || bytesWritten < 0) throw new RangeError("bytesWritten has an incorrect value"); $assert($getByIdDirectPrivate(controller, "pendingPullIntos").isNotEmpty()); |