napi-rs/examples/napi-compat-mode/__test__/napi4/tsfn-throw.js

6 lines
136 B
JavaScript
Raw Normal View History

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