Skip to content

Commit 773671b

Browse files
caseqchromium-wpt-export-bot
authored andcommitted
Fix a CHECK() in ByteStreamTeeEngine::Start() of a locked stream
Make sure we bail out if ReadableStream::AcquireDefaultReader() failed. Fixed: 456617547 Bug: 427166012 Change-Id: Ibccc6bfc733e4617566eb00bb2b8d5c8901ae28a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7115848 Commit-Queue: Andrey Kosyakov <[email protected]> Reviewed-by: Nate Chapin <[email protected]> Cr-Commit-Position: refs/heads/main@{#1540125}
1 parent aa13e1a commit 773671b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// META: global=window,worker
2+
'use strict';
3+
4+
test(() => {
5+
const byteReadable = new ReadableStream({type: 'bytes'});
6+
byteReadable.getReader();
7+
assert_throws_js(TypeError, () => byteReadable.tee(), 'byteReadable.tee() must throw');
8+
}, 'tee() on a locked byte stream does not crash');
9+

0 commit comments

Comments
 (0)