infinyon / node-bindgen

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

js-env test fails with 18.17.1 #257

Closed sehz closed 11 months ago

sehz commented 11 months ago

steps to reproduce:

$ nvm use 18.17.1
$ make -C examples/js-env test

assert.equal(addon.multiply(5), 10);
                   ^
TypeError: trying to get arg at: 1 but only 1 args passed
    at Object.<anonymous> (/node-bindgen/examples/js-env/test.js:5:20)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47

This works on 18.3