mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
### What does this PR do? When `napi_create_external_buffer` receives empty input, the returned buffer should be detached. This fixes the remaining tests in `ref-napi` other than three that use a few uv symbols <img width="329" height="159" alt="Screenshot 2025-11-01 at 8 38 01 PM" src="https://github.com/user-attachments/assets/2c75f937-79c5-467a-bde3-44e45e05d9a0" /> ### How did you verify your code works? Added tests for correct values from `napi_get_buffer_info`, `napi_get_arraybuffer_info`, and `napi_is_detached_arraybuffer` when given an empty buffer from `napi_create_external_buffer` --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>