Ensure exceptions are not thrown when terminating #3569

This commit is contained in:
Lovell Fuller 2023-06-03 11:51:39 +01:00
parent eb1e53db83
commit f5845c7e61
2 changed files with 6 additions and 1 deletions

View File

@ -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': [
'<!(node -p "require(\'node-addon-api\').gyp")',

View File

@ -6,6 +6,9 @@ Requires libvips v8.14.2
### v0.32.2 - TBD
* Ensure exceptions are not thrown when terminating.
[#3569](https://github.com/lovell/sharp/issues/3569)
* Ensure the same access method is used for all inputs (regression in 0.32.0).
[#3669](https://github.com/lovell/sharp/issues/3669)