summaryrefslogtreecommitdiff
path: root/cli/tests/node_compat/test/parallel/test-buffer-alloc.js
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2023-11-28 22:28:07 +0900
committerGitHub <noreply@github.com>2023-11-28 22:28:07 +0900
commit567d7ff923b75ad14e611ef53a0720c6c27fe266 (patch)
tree85a543a037482b0fcd51e3d22f3065d0e6ab7b1f /cli/tests/node_compat/test/parallel/test-buffer-alloc.js
parent4ed9278bf4c47670d9dda61a0d6e07e82cba3992 (diff)
fix(ext/node): fix Buffer.copy when sourceStart > source.length (#21345)
Diffstat (limited to 'cli/tests/node_compat/test/parallel/test-buffer-alloc.js')
-rw-r--r--cli/tests/node_compat/test/parallel/test-buffer-alloc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/node_compat/test/parallel/test-buffer-alloc.js b/cli/tests/node_compat/test/parallel/test-buffer-alloc.js
index 46517ec1e..dee9128a8 100644
--- a/cli/tests/node_compat/test/parallel/test-buffer-alloc.js
+++ b/cli/tests/node_compat/test/parallel/test-buffer-alloc.js
@@ -131,7 +131,7 @@ b.copy(Buffer.alloc(0), 1, 1, 1);
b.copy(Buffer.alloc(1), 1, 1, 1);
// Try to copy 0 bytes from past the end of the source buffer
-b.copy(Buffer.alloc(1), 0, 2048, 2048);
+b.copy(Buffer.alloc(1), 0, 1024, 1024);
// Testing for smart defaults and ability to pass string values as offset
{