mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 12:29:07 +00:00
- Add immutability (freeze) to Uint8Array and ArrayBuffer as per TC39 spec - Optimize base64 decoding to use native Uint8Array.fromBase64 when available - Add comprehensive tests for immutability requirements - Add tests to verify same object returned for multiple imports - Update bundler tests to verify immutability in build mode The TC39 import-bytes proposal requires that imported bytes are immutable. This change ensures compliance by freezing both the Uint8Array and its underlying ArrayBuffer. Performance is also improved by using the native Uint8Array.fromBase64 method when available (Stage 3 proposal). 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>