mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: add test case for process.dlopen with undefined
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
10
test/parallel/test-process-dlopen-undefined-exports.js
Normal file
10
test/parallel/test-process-dlopen-undefined-exports.js
Normal file
@@ -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);
|
||||
Reference in New Issue
Block a user