diff --git a/changelog.d/9282-node-api-host-buffer-brand.md b/changelog.d/9282-node-api-host-buffer-brand.md new file mode 100644 index 0000000000..8c35b72f40 --- /dev/null +++ b/changelog.d/9282-node-api-host-buffer-brand.md @@ -0,0 +1,4 @@ +Fixed the feature-gated Node-API host build after the Buffer branding refactor. +Allowlisted native addons once again link the complete 145-symbol host ABI and +load their authenticated sidecars instead of falling back to a runtime without +Node-API support. diff --git a/crates/perry-runtime/src/node_api_host/buffers.rs b/crates/perry-runtime/src/node_api_host/buffers.rs index c9fc9faf8f..9248c19ce3 100644 --- a/crates/perry-runtime/src/node_api_host/buffers.rs +++ b/crates/perry-runtime/src/node_api_host/buffers.rs @@ -145,7 +145,7 @@ pub unsafe extern "C" fn napi_get_buffer_info( length: *mut usize, ) -> NapiStatus { let owner = match pointer_owner(env, value) { - Ok(owner) if is_node_buffer(owner) => owner, + Ok(owner) if crate::buffer::is_node_buffer(owner) => owner, _ => return set_status(env, NapiStatus::InvalidArg, "value must be a Buffer"), }; let buffer = owner as *const BufferHeader;