summaryrefslogtreecommitdiff
path: root/test/parallel/test-process-dlopen-undefined-exports.js
blob: 3766a73a45ab7b4fcb0a15efffa39b07601d5283 (plain)
1
2
3
4
5
6
7
8
9
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);