Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog.d/9282-node-api-host-buffer-brand.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion crates/perry-runtime/src/node_api_host/buffers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading