New issue
Advanced search Search tips

Issue 923006 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Odd readable stream throw with 'pause on exceptions'

Project Member Reported by jakearchibald@chromium.org, Jan 17 (5 days ago)

Issue description

1. Visit https://fetch-flow-control-demo.glitch.me/
2. Open devtools.
3. In the "Sources" tab select "Pause on exceptions".
4. Under the no-store heading, click 'fetch', then 'read 500k'.


The code breaks on reader.releaseLock() - TypeError: The readable stream reader has been released.

If you repeat the above steps without "Pause on exceptions", there's no observable error.

Reproducible in stable and 73.0.3673.0 Mac.
 

Comment 1 by l...@chromium.org, Jan 18 (5 days ago)

Owner: l...@chromium.org
Status: Assigned (was: Untriaged)

Comment 2 by ricea@chromium.org, Jan 18 (4 days ago)

I think this is related to issue 807998, although it's happening in a different part of the code. Similar to that issue, the relevant lines are (from 
third_party/blink/renderer/core/streams/ReadableStream.js:736):

rejectPromise(
          reader[_closedPromise],
          new TypeError(errReleasedReaderClosedPromise));
markPromiseAsHandled(reader[_closedPromise]);

The second line will prevent an uncaught rejection being reported to user JS, but doesn't seem to stop it being reported by devtools.

Sign in to add a comment