mirror of
https://github.com/nodejs/node.git
synced 2025-05-03 16:34:41 +00:00

This enables the option `--force-node-api-uncaught-exceptions-policy` for a specific Node-API addon when it is compiled with `NAPI_EXPERIMENTAL` (and this would be the default behavior when `NAPI_VERSION` 10 releases). This would not break existing Node-API addons. PR-URL: https://github.com/nodejs/node/pull/49313 Refs: https://github.com/nodejs/node/pull/36510 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com>
23 lines
426 B
Python
23 lines
426 B
Python
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'binding',
|
|
'sources': ['binding.c']
|
|
},
|
|
{
|
|
'target_name': 'test_uncaught_exception_v9',
|
|
'defines': [
|
|
'NAPI_VERSION=9'
|
|
],
|
|
'sources': ['test_uncaught_exception.c']
|
|
},
|
|
{
|
|
'target_name': 'test_uncaught_exception',
|
|
'defines': [
|
|
'NAPI_EXPERIMENTAL'
|
|
],
|
|
'sources': ['test_uncaught_exception.c']
|
|
}
|
|
]
|
|
}
|