Skip to content

Commit 10cfe52

Browse files
Swallow exceptions in terminating environments…
…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`.)
1 parent e74b6ba commit 10cfe52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

binding.gyp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"targets": [{
33
"target_name": "nsfw",
4-
4+
"defines": [
5+
"NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS"
6+
],
57
"sources": [
68
"src/NSFW.cpp",
79
"src/Queue.cpp",

0 commit comments

Comments
 (0)