Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 122eb51

Browse filesBrowse files
VoltrexKeyvadanielleadams
authored andcommitted
test: add DataView test entry for whatwg
The WHATWG `ReadableStream` test needs a new test entry for reading a `DataView`. PR-URL: #40622 Fixes: #40612 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 4f4fec4 commit 122eb51
Copy full SHA for 122eb51

File tree

Expand file treeCollapse file tree

1 file changed

+15
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+15
-0
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-whatwg-readablestream.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-whatwg-readablestream.js
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,3 +1602,18 @@ class Source {
16021602
isReadable(stream, false);
16031603
})().then(common.mustCall());
16041604
}
1605+
1606+
{
1607+
const stream = new ReadableStream({
1608+
type: 'bytes',
1609+
start(controller) {
1610+
controller.close();
1611+
}
1612+
});
1613+
1614+
const buffer = new ArrayBuffer(1024);
1615+
const reader = stream.getReader({ mode: 'byob' });
1616+
1617+
reader.read(new DataView(buffer))
1618+
.then(common.mustCall());
1619+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.