Skip to content

fix(napi): receive raw pointer out parameters#55

Closed
GrapeBaBa wants to merge 2 commits into
mainfrom
fix/napi-out-parameters
Closed

fix(napi): receive raw pointer out parameters#55
GrapeBaBa wants to merge 2 commits into
mainfrom
fix/napi-out-parameters

Conversation

@GrapeBaBa

@GrapeBaBa GrapeBaBa commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • receive the Node version pointer through its own raw out slot before copying the version structure
  • receive TypedArray and DataView backing ArrayBuffer handles as raw napi_value values
  • construct Value wrappers only after successful Node-API calls

@GrapeBaBa
GrapeBaBa force-pushed the fix/napi-out-parameters branch from eb1003f to f4a88cd Compare July 20, 2026 09:16
@GrapeBaBa GrapeBaBa changed the title fix(napi): handle pointer out parameters safely fix(napi): receive raw pointer out parameters Jul 20, 2026
@GrapeBaBa
GrapeBaBa force-pushed the fix/napi-out-parameters branch from c8e17fe to 66ed541 Compare July 20, 2026 12:05
@GrapeBaBa

Copy link
Copy Markdown
Contributor Author

Superseded by #57.

@GrapeBaBa GrapeBaBa closed this Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant