MCPcopy Index your code
hub / github.com/nodejs/node / testArrayAsyncLimit

Function testArrayAsyncLimit

test/parallel/test-stream-iter-consumers-bytes.js:120–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120async function testArrayAsyncLimit() {
121 async function* gen() {
122 yield [new Uint8Array(100)];
123 yield [new Uint8Array(100)];
124 }
125 await assert.rejects(
126 () => array(gen(), { limit: 50 }),
127 { name: 'RangeError' },
128 );
129}
130
131// =============================================================================
132// Non-array batch tolerance

Calls 2

genFunction · 0.70
arrayFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…