-
Notifications
You must be signed in to change notification settings - Fork 44
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
Supporting ArrayBuffer since electron 21 and higher #309
Comments
Hello @sehz . Any chance to take a look at this issue? Sending bytes as |
Can you try upgrading https://github.com/infinyon/node-bindgen/tree/master/nj-sys? Will try take look at later part of the week |
Hello @sehz I've did |
It's in here: https://github.com/infinyon/node-bindgen/blob/master/nj-core/src/buffer.rs. Nothing obvious yet. |
Been busy this week. Will try to find sometime over weekend to see what's going on |
@sehz sorry to ping you again. Any news? |
I am trying to reproduce it. What version of node? |
@sehz sorry for delay with the reply, I've missed your message. The issue comes not with node, but with electron. I've attached example to this issue. Actually it's original example from repo, but modified to be runned in the context of electron. As for running in the context of node - there are no issues at all. |
@sehz @morenol Hello guys. Actually, I think here is nothing to do with Please take a look #318 |
Thanks @sehz . Could you please also update it on crates.io ) |
@morenol can you release? |
@DmitryAstafyev crates released. Is it all working for you as expected? |
Issue
Panic on call
try_to_js
withnapi_status == napi_status_napi_no_external_buffers_allowed
. Looks like changes comes with electron 21 >.Probably this is related:
Reproducing
An example is created based on your example of buffer usage. Unpack and do
Error trace
buffer.zip
The text was updated successfully, but these errors were encountered: