Files
bun.sh/test/bundler
Claude Bot 8eba202718 feat: improve bytes import loader for TC39 compliance
- 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>
2025-09-23 18:47:07 +00:00
..
2024-06-27 14:56:07 -07:00
2025-04-10 14:58:46 -07:00
2025-04-21 23:28:03 -07:00