Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1157)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/streams/chromium/get-reader-byob.html

Issue 2432863004: Fix ReadableStream getReader({mode: 'byob'}) (Closed)
Patch Set: Unconditionally throw if mode is 'byob' Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script>
6 test(() => {
7 const rs = new ReadableStream();
8 assert_throws(new TypeError(), () => rs.getReader({mode: 'byob'}),
9 'a TypeError should be thrown');
10 }, 'getReader() with mode "byob" should throw a TypeError');
11 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698