From f5845c7e6172c71941ade4ccff5e2be6610029e1 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sat, 3 Jun 2023 11:51:39 +0100 Subject: [PATCH] Ensure exceptions are not thrown when terminating #3569 --- binding.gyp | 4 +++- docs/changelog.md | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/binding.gyp b/binding.gyp index c5616047..436ead95 100644 --- a/binding.gyp +++ b/binding.gyp @@ -70,7 +70,9 @@ }, { 'target_name': 'sharp-<(platform_and_arch)', 'defines': [ - 'NAPI_VERSION=7' + 'NAPI_VERSION=7', + 'NODE_ADDON_API_DISABLE_DEPRECATED', + 'NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS' ], 'dependencies': [ '