test: fix missing edge case in test-blob-slice-with-large-size · nodejs/node@53cb298 · GitHub
Skip to content

Commit 53cb298

Browse files
joyeecheungtargos
authored andcommitted
test: fix missing edge case in test-blob-slice-with-large-size
The test only cares about whether a size outside the range of the 32-bit signed integers works with Blob.prototype.slice(). If it fails due to allocation failure when the system does not have enough memory, the test should just be skipped. The test previously only skipped the test when the allocation failure happens during allocation of the buffer source, but it could also happen during Blob.prototype.slice(). PR-URL: #58414 Fixes: #57235 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
1 parent 7acac70 commit 53cb298

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

test/pummel/test-blob-slice-with-large-size.js

Lines changed: 9 additions & 3 deletions

0 commit comments

Comments
 (0)