deno
f43b025e - fix(ext/napi): implement zero-copy external Latin-1 strings (#33283)

Commit
97 days ago
fix(ext/napi): implement zero-copy external Latin-1 strings (#33283) ## Summary `node_api_create_external_string_latin1` previously always copied the string data and immediately called the finalize callback. This implements true zero-copy using V8's external one-byte string API. `node_api_create_external_string_utf16` still copies because rusty_v8 doesn't expose a non-static external two-byte string API. The `*copied` flag is set correctly so well-behaved callers handle both cases. --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Parents
Loading