From 290dfdc2d992321a487483565b77698897e7343a Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Mon, 14 Nov 2022 15:16:23 -0500 Subject: [PATCH] stream: update todo message for detached buffers --- lib/internal/webstreams/util.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/internal/webstreams/util.js b/lib/internal/webstreams/util.js index 0e260d074c73c2..fdaa88ef4b1937 100644 --- a/lib/internal/webstreams/util.js +++ b/lib/internal/webstreams/util.js @@ -142,6 +142,8 @@ function transferArrayBuffer(buffer) { function isDetachedBuffer(buffer) { if (ArrayBufferGetByteLength(buffer) === 0) { // TODO(daeyeon): Consider using C++ builtin to improve performance. + // Replace this when current v8 is updated to include the following commit: + // https://chromium.googlesource.com/v8/v8/+/9df5ef70ff18977b157028fc55ced5af4bcee535 try { new Uint8Array(buffer); } catch (error) {