Skip to content
Prev Previous commit
Next Next commit
test: add test case that crashes when process.dlopen with undefined
  • Loading branch information
Leko committed Nov 30, 2017
commit dbee7b03382d53ffc74ced8d09b3658316ef5a43
10 changes: 10 additions & 0 deletions test/parallel/test-process-dlopen-undefined-exports.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict';

require('../common');
const assert = require('assert');

const someBindingPath = './test/addons/hello-world/build/Release/binding.node';

assert.throws(() => {
process.dlopen({ exports: undefined }, someBindingPath);
}, Error);