koffi
Version:
Fast and simple C FFI (foreign function interface) for Node.js
19 lines (15 loc) • 474 B
JavaScript
const assert = require('assert');
const testUtil = require('./testUtil');
function test (binding) {
return testUtil.runGCTests([
'objectwrap constructor exception',
() => {
const { ConstructorExceptionTest } = binding.objectwrapConstructorException;
assert.throws(() => (new ConstructorExceptionTest()), /an exception/);
},
// Do on gc before returning.
() => {}
]);
}
module.exports = require('./common').runTest(test);
;