-
It has been a while since our last discussion of spell checker in VSCode https://github.com/Microsoft/vscode/issues/20266 but this extension solves most of my problem, great work and thanks!
Nodejs…
-
How can you create a function like this in js?
```
function a(res) {
res.setA(42);
}
```
The only work around i foun was to create a type in rust like this:
`#[napi]
pub type Test = fn…
-
Hi, is there a way to use `#[derive(Default)]` for `#[napi(constructor)]`?
```rust
#[napi(constructor)]
#[derive(Debug, Default)]
pub struct Foo {
pub bar: String
}
```
I tried ro manual…
-
code:
```
var user32 = new ffi.Library('user32', {
GetWindowThreadProcessId: ['long', ['long', 'pointer']],
EnumWindows: ['bool', ['pointer', 'long']],
});
const callback = new ffi.Callback(…
-
Tried by doing:
```
docker run -it debian:bookworm-slim /bin/bash
```
Then inside the container:
```
apt update
apt install -y curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.…
-
### Bug description
This test is flaky with Node-API
```
FAIL src/__tests__/integration/happy/disconnect-while-query/test.ts
✕ disconnect-while-query (770 ms)
● disconnect-while-query
…
-
Our c++ project is very large, when I use a module to generate a cxx file, the final size of the file is about 15mb, when editing or debugging in the ide, it will be very slow. So I tried to split it …
-
### Specification
Native bindings is currently loaded using `requireBinding`. This is integrated into our native addon packaging style using optional dependencies.
However this won't work as par…
-
```
npm install ffi-napi
npm ERR! code 1
npm ERR! path /Users/zoujiaqing/projects/node_modules/ffi-napi
npm ERR! command failed
npm ERR! command sh -c node-gyp-build
npm ERR! CC(target) Release/…
-
页面引入const ffi = require('ffi-napi');后运行报错:failed: No native build was found for platform=win32 arch=x64 runtime=electron abi=123 uv=1 libc=glibc node=20.14.0 electron=30.1.2 webpack=true