mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net> PR-URL: https://github.com/nodejs/node/pull/65967 Fixes: https://github.com/nodejs/node/issues/65100 Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com>
12 lines
460 B
JavaScript
12 lines
460 B
JavaScript
'use strict';
|
|
|
|
const common = require('../../common');
|
|
const run = require(`./build/${common.buildType}/multi_thread_count_release`);
|
|
|
|
// Ensures that the finalizer is called exactly once regardless of initial thread count
|
|
// of a TSFN.
|
|
// Also this verifies that multiple thread count does not cause re-entrant finalization.
|
|
|
|
run(false, common.mustCall()); // Three releases.
|
|
run(true, common.mustCall()); // One abort, then two calls returning napi_closing.
|