You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implemented in packages/host/cpp/RuntimeNodeApi.cpp: napi_create_buffer allocates an ArrayBuffer and returns a Uint8Array view over it.
Hermes' first-party Node-API now implements the buffer API the same way (Buffer as Uint8Array, API/napi/hermes_napi_buffer.cpp, adopted in #372); the host's definition currently shadows it in the generated injector, so dropping the shim in favour of Hermes' is a follow-up cleanup rather than a behaviour change.
Covered by packages/node-addon-examples/tests/buffers (a port of Node's test_buffer). The remaining fidelity gap versus a real Buffer stays tracked in #171.