Skip to content

Commit

Permalink
Merge pull request #13 from epessoa-i/patch-1
Browse files Browse the repository at this point in the history
Added .node in segfault-raub require
  • Loading branch information
raub authored Oct 29, 2024
2 parents 12d9b30 + 56e8a15 commit c923051
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ setSignal(SIGSEGV, false);

setSignal(EXCEPTION_BREAKPOINT, true);
setSignal(SIGTRAP, true);

setSignal(EXCEPTION_ALL, true) // this enables capturing every signal.
```

On **Windows**, all the **Unix** signals are `null`, and the opposite is true.
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if (global['segfault-raub']) {
} else {
const { getBin } = require('addon-tools-raub');

const core = require(`./${getBin()}/segfault`);
const core = require(`./${getBin()}/segfault.node`);

global['segfault-raub'] = core;
module.exports = core;
Expand Down

0 comments on commit c923051

Please sign in to comment.