Skip to content

Commit 8336e4f

Browse files
LekoMylesBorins
authored andcommitted
test: add test case for process.dlopen with undefined
PR-URL: #17343 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
1 parent f060881 commit 8336e4f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict';
2+
3+
require('../common');
4+
const assert = require('assert');
5+
6+
const someBindingPath = './test/addons/hello-world/build/Release/binding.node';
7+
8+
assert.throws(() => {
9+
process.dlopen({ exports: undefined }, someBindingPath);
10+
}, Error);

0 commit comments

Comments
 (0)