0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-24 20:29:23 +01:00
nodejs/test/parallel/test-process-dlopen-undefined-exports.js
Leko 2355c843ba
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>
2017-12-01 20:40:00 +01:00

11 lines
245 B
JavaScript

'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);