GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: test streambase has already has a consumer · nodejs/node@49e5f47

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-whatwg-webstreams-adapters-streambase.js
    • test-whatwg-webstreams-adapters-to-readablewritablepair.js
    • test-whatwg-webstreams-adapters-to-streamduplex.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-whatwg-webstreams-adapters-streambase.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-whatwg-webstreams-adapters-streambase.js
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,12 @@ const {
6565
const readable = newReadableStreamFromStreamBase(stream);
6666
readable.cancel().then(common.mustCall());
6767
}
68+
69+
{
70+
const stream = new JSStream();
71+
stream.onread = common.mustCall();
72+
assert.throws(() => newReadableStreamFromStreamBase(stream), {
73+
code: 'ERR_INVALID_STATE'
74+
});
75+
stream.emitEOF();
76+
}
Collapse file

‎test/parallel/test-whatwg-webstreams-adapters-to-readablewritablepair.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-whatwg-webstreams-adapters-to-readablewritablepair.js
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,9 @@ const {
248248
reader.closed.then(common.mustCall());
249249
writer.close().then(common.mustCall());
250250
}
251+
252+
{
253+
assert.throws(() => newReadableWritablePairFromDuplex(null), {
254+
code: 'ERR_INVALID_ARG_TYPE'
255+
});
256+
}
Collapse file

‎test/parallel/test-whatwg-webstreams-adapters-to-streamduplex.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-whatwg-webstreams-adapters-to-streamduplex.js
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,21 @@ const {
164164

165165
duplex.end();
166166
}
167+
168+
{
169+
const transform = { readable: {}, writable: {} };
170+
assert.throws(() => newStreamDuplexFromReadableWritablePair(transform), {
171+
code: 'ERR_INVALID_ARG_TYPE'
172+
});
173+
}
174+
175+
{
176+
const transform = {
177+
readable: new ReadableStream(),
178+
writable: null
179+
};
180+
181+
assert.throws(() => newStreamDuplexFromReadableWritablePair(transform), {
182+
code: 'ERR_INVALID_ARG_TYPE',
183+
});
184+
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.