napi-rs/test_module/__test__/napi4/tsfn-dua-instance.js

11 lines
225 B
JavaScript

const bindings = require('../../index.node')
async function main() {
await Promise.resolve()
new bindings.A((s) => console.info(s))
new bindings.A((s) => console.info(s))
}
main().catch((e) => {
console.error(e)
})