napi-rs/test_module/__test__/napi4/tsfn-throw.js

5 lines
136 B
JavaScript

const bindings = require('../../index.node')
bindings.testThreadsafeFunction(() => {
throw Error('Throw in thread safe function')
})