Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Known Issues In Electron v20.x.x and later. #83

Closed
wants to merge 1 commit into from
Closed

Fix: Known Issues In Electron v20.x.x and later. #83

wants to merge 1 commit into from

Conversation

eezz4
Copy link

@eezz4 eezz4 commented Jan 10, 2024

https://github.com/nodejs/node-addon-api/blob/main/doc/buffer.md
https://github.com/nodejs/node-addon-api/blob/main/doc/external_buffer.md

Close

  • Using an unacceptable Buffer<char>::new inside WrapPointer() will eventually cause problems in higher versions of Electron.

    • There is logic to access WrapPointer() from ffi-napi logic.
  • To use Buffer::NewOrCopy, raise the node-addon-api version.

    • However, changing Buffer::NewOrCopy from Buffer::New is a behavioral change and causes many test code failures...

In Electron `v20.x.x` and later. An error occurs when `nullptr` is passed to Buffer<char>::New.
@eezz4 eezz4 closed this Jan 14, 2024
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