Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
debd3c2
tools: disable failing test envs in `test-linux` CI
aduh95 May 16, 2025
d164dc2
tools: update sccache version to v0.10.0
marco-ippolito Apr 23, 2025
7c449ed
tools: fix tarball testing directory
marco-ippolito Apr 23, 2025
bffd4ec
test: skip in test-buffer-tostring-rangeerror on allocation failure
joyeecheung May 23, 2025
3cbf5f9
test: fix missing edge case in test-blob-slice-with-large-size
joyeecheung May 23, 2025
af1dc63
crypto: update root certificates to NSS 3.108
nodejs-github-bot Mar 11, 2025
39925de
crypto: allow non-multiple of 8 in SubtleCrypto.deriveBits
panva Oct 6, 2024
79e0812
build: use glob for dependencies of out/Makefile
richardlau Nov 10, 2024
441ce24
doc: deprecate passing invalid types in `fs.existsSync`
Ceres6 Nov 25, 2024
c535a3c
crypto: graduate WebCryptoAPI Ed25519 and X25519 algorithms as stable
panva Dec 5, 2024
363bf74
worker: flush stdout and stderr on exit
mcollina Jan 6, 2025
7a2e64b
deps: update simdutf to 6.4.0
nodejs-github-bot Apr 8, 2025
f1dc7d0
deps: update corepack to 0.32.0
nodejs-github-bot Mar 4, 2025
3140a8f
doc: add missing `deprecated` badges in `fs.md`
y-hsgw Mar 13, 2025
776becf
doc: remove mention of `--require` not supporting ES modules
JLHwung Mar 28, 2025
fcd1622
src: fix kill signal 0 on Windows
StefanStojanovic Apr 4, 2025
c9c0be5
test: update expected error message for macOS
aduh95 Apr 6, 2025
81342d1
doc: fix deprecation type for `DEP0148`
LiviaMedeiros Apr 9, 2025
5ca9616
doc: increase z-index of header element
dario-piotrowicz Apr 12, 2025
fc1fa7a
build: use FILE_OFFSET_BITS=64 esp. on 32-bit arch
RafaelGSS Apr 30, 2025
0fdcc0d
doc: add ambassaor message
bmuenzenmeyer Mar 23, 2025
fd44af7
doc: fix misaligned options in vm.compileFunction()
hkleungai May 5, 2025
5193735
doc: add missing options.signal to readlinePromises.createInterface()
hkleungai May 3, 2025
f006411
doc: fix typo of file `zlib.md`
samuel871211 May 3, 2025
e5d6a3d
doc: fix `AsyncLocalStorage` example response changes after node v18
ntedgi Apr 24, 2025
b6daa34
doc: add dario-piotrowicz to collaborators
dario-piotrowicz May 1, 2025
56fce66
test: prevent extraneous HOSTNAME substitution in test-runner-output
Renegade334 May 1, 2025
ccc42b6
doc: fix env variable name in `util.styleText`
aduh95 May 1, 2025
c7e9269
doc: add returns for https.get
Juneezee Apr 29, 2025
e99462c
doc: correct deprecation type of `assert.CallTracker`
Renegade334 Apr 24, 2025
10fb49f
deps: update icu to 77.1
nodejs-github-bot Mar 16, 2025
01d63a4
deps: update timezone to 2025b
nodejs-github-bot Apr 16, 2025
0c0fbfa
doc: add missing v0.x changelog entries
aduh95 Apr 8, 2025
c2c6d2b
http: be more generational GC friendly
ywave620 Jan 31, 2025
c0252cd
src: fix -Wunreachable-code-return in node_sea
codebytere Apr 23, 2025
234a505
src: allow embedder customization of OOMErrorHandler
codebytere Mar 7, 2025
0556f54
http: correctly translate HTTP method
ShogunPanda Apr 26, 2024
da6a13c
test: deflake test-http2-options-max-headers-block-length
lpinca Apr 24, 2025
275ea8e
test: force GC in test-file-write-stream4
lpinca Apr 20, 2025
49e624f
os: fix netmask format check condition in getCIDR function
HBSPS Apr 20, 2025
bbd5aec
http2: fix graceful session close
pandeykushagra51 Apr 19, 2025
eb44716
deps: update simdutf to 6.4.2
nodejs-github-bot Apr 15, 2025
414013d
tools: edit create-release-proposal workflow to handle pr body length
elvessilvavieira Apr 14, 2025
b90c4ab
tools: remove unused `osx-pkg-postinstall.sh`
aduh95 Apr 12, 2025
71c664f
doc: update position type to integer | null in fs
y-hsgw Apr 6, 2025
d582954
src: remove unused variable in crypto_x509.cc
targos Apr 5, 2025
cdf3fa2
http2: skip writeHead if stream is closed
islandryu Apr 4, 2025
d940b15
doc: clarify `unhandledRejection` events behaviors in process doc
dario-piotrowicz Apr 2, 2025
2917f09
doc: improved fetch docs
lifeisfoo Apr 2, 2025
791e487
doc: document REPL custom eval arguments
dario-piotrowicz Apr 1, 2025
7b2c0bc
doc: add gurgunday as triager
gurgunday Mar 29, 2025
e80669b
doc: mention reports should align with Node.js CoC
RafaelGSS Mar 26, 2025
f57765b
test: mark test-without-async-context-frame flaky on windows
jasnell Jan 24, 2025
1521125
typings: fix `ImportModuleDynamicallyCallback` return type
legendecas Feb 21, 2025
447481e
deps: V8: cherry-pick third_party/zlib@646b7f569718
zmodem Apr 22, 2025
fd56652
deps: V8: cherry-pick 182d9c05e78b
caseq Aug 17, 2023
d09008a
deps: V8: cherry-pick 1a3ecc2483b2
targos Sep 13, 2023
8237346
test,crypto: update WebCryptoAPI WPT
panva Aug 29, 2024
f56e628
crypto: allow length=0 for HKDF and PBKDF2 in SubtleCrypto.deriveBits
panva Nov 17, 2024
3cf7cfb
test: update WPT for WebCryptoAPI to edd42c005c
nodejs-github-bot Mar 9, 2025
b427ae4
meta: remove `build-windows.yml`
avivkeller Sep 18, 2024
850192b
test: skip broken sea on rhel8
marco-ippolito Jun 19, 2025
76f8282
2025-06-23, Version 20.19.3 'Iron' (LTS)
marco-ippolito Jun 5, 2025
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: 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>
  • Loading branch information
joyeecheung authored and marco-ippolito committed Jun 5, 2025
commit 3cbf5f93d22123cd274d4fd252de068125e71c7b
12 changes: 9 additions & 3 deletions test/pummel/test-blob-slice-with-large-size.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
'use strict';

// This tests that Blob.prototype.slice() works correctly when the size of the
// Blob is outside the range of 32-bit signed integers.
const common = require('../common');

// Buffer with size > INT32_MAX
Expand All @@ -14,8 +17,11 @@ try {
const slicedBlob = blob.slice(size - 1, size);
assert.strictEqual(slicedBlob.size, 1);
} catch (e) {
if (e.code !== 'ERR_MEMORY_ALLOCATION_FAILED') {
throw e;
if (e.code === 'ERR_MEMORY_ALLOCATION_FAILED') {
common.skip('insufficient space for Buffer.allocUnsafe');
}
if (/Array buffer allocation failed/.test(e.message)) {
common.skip('insufficient space for Blob.prototype.slice()');
}
common.skip('insufficient space for Buffer.allocUnsafe');
throw e;
}
Loading