Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: over size array in some platforms
  • Loading branch information
kuriyosh committed Jan 21, 2022
commit 8b1c102ecab46fcf695749ed67866714c3564c91
6 changes: 4 additions & 2 deletions test/parallel/test-blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,10 @@ assert.throws(() => new Blob({}), {
});
});

assert.throws(() => new Blob([new Uint8Array(0xffffffff), [1]]), {
code: 'ERR_BUFFER_TOO_LARGE',
const overSizeArray = Array(17).fill(new Uint8Array(0xfffffff));

assert.throws(() => new Blob(overSizeArray), {
code: "ERR_BUFFER_TOO_LARGE",
});
}

Expand Down