From cbe4b5615762fa164baec213775cb358a3e9d3a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Pess=C3=B4a?= Date: Mon, 10 Jun 2024 11:30:18 -0300 Subject: [PATCH 1/2] add minimal documentation about the EXCEPTION_ALL option --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 43f1e2c..923c07b 100644 --- a/README.md +++ b/README.md @@ -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. From 0f30c0050bd5eb58a48b475282c388b31e4e6227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Pess=C3=B4a?= Date: Mon, 10 Jun 2024 11:31:53 -0300 Subject: [PATCH 2/2] add .node in require, to let esbuild take the native module correctly --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d7da545..7a15f3b 100644 --- a/index.js +++ b/index.js @@ -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;