Skip to content

Commit

Permalink
Fix streams test to use minimum read instead of fill
Browse files Browse the repository at this point in the history
fill function was the previous iteration of the spec, the final iteration has a `min` option instead.
  • Loading branch information
crowlKats authored Nov 15, 2023
1 parent 64ac099 commit 3df6d94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ promise_test(async t => {
const reader = rs.getReader({ mode: 'byob' });
const memory = new WebAssembly.Memory({ initial: 1 });
const view = new Uint8Array(memory.buffer, 0, 1);
await promise_rejects_js(t, TypeError, reader.fill(view));
await promise_rejects_js(t, TypeError, reader.read(view, { min: 1 }));
}, 'ReadableStream with byte source: fill() with a non-transferable buffer');

test(t => {
Expand Down

0 comments on commit 3df6d94

Please sign in to comment.