Skip to content

Commit

Permalink
test: add test case for process.dlopen with undefined
Browse files Browse the repository at this point in the history
PR-URL: #17343
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
  • Loading branch information
Leko authored and MylesBorins committed Dec 12, 2017
1 parent f060881 commit 8336e4f
Showing 1 changed file with 10 additions and 0 deletions.
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);

0 comments on commit 8336e4f

Please sign in to comment.