Files
bun.sh/test/js
Sosuke Suzuki fa91629e30 fix(buffer): return fixed-length view from slice on resizable ArrayBuffer
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>
2026-02-09 18:55:31 +09:00
..
2024-12-12 02:07:29 -08:00