Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

// META: global=window,worker
'use strict';
test(() => {
const byteReadable = new ReadableStream({type: 'bytes'});
byteReadable.getReader();
assert_throws_js(TypeError, () => byteReadable.tee(), 'byteReadable.tee() must throw');
}, 'tee() on a locked byte stream does not crash');