Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test.js
  • Loading branch information
nornagon authored Nov 8, 2019
commit 27ee4a6887d4ca40b28e9435c4e942adecc8464e
2 changes: 1 addition & 1 deletion test/addons/dlopen-ping-pong/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ assert.strictEqual(module.exports.ping(), 'pong');
// Check that after the addon is loaded with
// process.dlopen() a require() call fails.
console.log('require:', `./build/${common.buildType}/binding`);
const re = /^Error: Module did not self-register: '.*\/binding\.node'\.$/;
const re = /^Error: Module did not self-register: '.*[\\\/]binding\.node'\.$/;
assert.throws(() => require(`./build/${common.buildType}/binding`), re);