blob: 2fbed814488f1f6210941d810846c40b9ff767e8 [file] [log] [blame]
'use strict';
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);