From 10cfe5245f617377ee5d88a3c786b323fa2c42b5 Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Wed, 25 Sep 2024 22:57:11 -0700 Subject: [PATCH] =?UTF-8?q?Swallow=20exceptions=20in=20terminating=20envir?= =?UTF-8?q?onments=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …triggered by `nsfw` async operations. (See https://github.com/nodejs/node-addon-api/blob/main/doc/setup.md and the section on `NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS`.) --- binding.gyp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/binding.gyp b/binding.gyp index d966dd6..6bec17c 100644 --- a/binding.gyp +++ b/binding.gyp @@ -1,7 +1,9 @@ { "targets": [{ "target_name": "nsfw", - + "defines": [ + "NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS" + ], "sources": [ "src/NSFW.cpp", "src/Queue.cpp",