infinyon / node-bindgen

Easy way to write Node.js module using Rust
Apache License 2.0
532 stars 43 forks source link

problem with running api v6 on windows #61

Open sehz opened 4 years ago

sehz commented 4 years ago

steps to reproduce:

this generates:

Finished dev [unoptimized + debuginfo] target(s) in 13.20s
node test.js
make: *** [Makefile:7: test] Error -1073741819
Ryanmtate commented 4 years ago

Appears to be breaking on https://github.com/infinyon/node-bindgen/blob/master/nj-core/src/basic.rs#L348 when attempting to convert the napi result in the napi_call_result! macro on https://github.com/infinyon/node-bindgen/blob/master/nj-core/src/lib.rs#L67

napi_get_cb_info signature looks good. Checking if there have been breaking changes.