Skip to content

Commit 35f136a

Browse files
committed
test: fix test-buffer-tostring-range on allocation failure
nodejs/node#58416
1 parent ccb80ef commit 35f136a

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

patches/node/support_v8_sandboxed_pointers.patch

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -384,18 +384,3 @@ index 9787b14352753c5e0f8dc2b90093680e7cd10f1a..31af9e62396368af1b81f8841a705fd3
384384
auto ab = ArrayBuffer::New(isolate, std::move(bs));
385385
v8::Local<Uint8Array> u8 = v8::Uint8Array::New(ab, 0, 1);
386386

387-
diff --git a/test/parallel/test-buffer-tostring-range.js b/test/parallel/test-buffer-tostring-range.js
388-
index 73fec107a36c3db4af6f492137d0ca174f2d0547..a1153ec381f7b12a1640b611073f6997e1ec5696 100644
389-
--- a/test/parallel/test-buffer-tostring-range.js
390-
+++ b/test/parallel/test-buffer-tostring-range.js
391-
@@ -102,8 +102,8 @@ assert.throws(() => {
392-
// Must not throw when start and end are within kMaxLength
393-
// Cannot test on 32bit machine as we are testing the case
394-
// when start and end are above the threshold
395-
-if (!common.openSSLIsBoringSSL) {
396-
+/*
397-
const threshold = 0xFFFFFFFF;
398-
const largeBuffer = Buffer.alloc(threshold + 20);
399-
largeBuffer.toString('utf8', threshold, threshold + 20);
400-
-}
401-
+*/

0 commit comments

Comments
 (0)