[whatwg/streams] Should cancelation error from UnderlyingSource be transferred too? (Issue #1259)

```js
b = new ReadableStream({
    cancel() {
      throw new Error("Hello");
    }
})
transferred = structuredClone(b, { transfer: [b] })

// This resolves as it never gets the error message back, with its port immediately closed
transferred.cancel();
```

Couldn't find a relevant discussion, but WPT explicitly tests it [to not wait for the underlying source cancel](https://github.com/web-platform-tests/wpt/blob/4ec997cb455c429be5b26681b0515428e086cac1/streams/transferable/readable-stream.html#L174-L185). What was the reason behind it?

I don't have a good argument against the current behavior, just out of curiosity.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1259
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/1259@github.com>

Received on Friday, 24 February 2023 18:42:06 UTC