mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
node-api: execute tsfn finalizer after queue drains when aborted
A threadsafe function may utilize its context in its `call_js` callback. The context should be valid during draining of the queue when the threadsafe function is aborted. Fixes: https://github.com/nodejs/node/issues/60026 PR-URL: https://github.com/nodejs/node/pull/61956 Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
1 parent
fd3bf3830b
commit
a0ccf94f61
4 files changed
+112
-2
No files matched your search
@@ -0,0 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const common = require('../../common');
|
||||
const binding = require(`./build/${common.buildType}/binding`);
|
||||
|
||||
binding();
|
||||
Reference in new issue
Block a user