mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Buffer.slice() on a resizable/growable ArrayBuffer was passing std::nullopt to JSUint8Array::create(), creating a length-tracking view that expanded when the buffer grew. Pass newLength instead to match Node.js behavior where slice always returns a fixed-length view. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>