Skip to content

Commit

Permalink
Swallow exceptions in terminating environments…
Browse files Browse the repository at this point in the history
…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`.)
  • Loading branch information
savetheclocktower committed Sep 26, 2024
1 parent e74b6ba commit 10cfe52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"targets": [{
"target_name": "nsfw",

"defines": [
"NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS"
],
"sources": [
"src/NSFW.cpp",
"src/Queue.cpp",
Expand Down

0 comments on commit 10cfe52

Please sign in to comment.