mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
process: mark process.finalization as release candidate
Signed-off-by: Matteo Collina <hello@matteocollina.com> PR-URL: https://github.com/nodejs/node/pull/66436 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
ddc26483e9
commit
a0fe468a17
2 files changed
+15
-7
No files matched your search
+15
-3
@@ -2088,9 +2088,13 @@ Since it's not possible to build Node.js without libuv, this value is always `tr
|
||||
|
||||
<!-- YAML
|
||||
added: v22.5.0
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/66436
|
||||
description: Marked as release candidate.
|
||||
-->
|
||||
|
||||
> Stability: 1.1 - Active Development
|
||||
> Stability: 1.2 - Release candidate
|
||||
|
||||
* `ref` {Object | Function} The reference to the resource that is being tracked.
|
||||
* `callback` {Function} The callback function to be called when the resource
|
||||
@@ -2197,9 +2201,13 @@ as it is not guaranteed that the callback will be called under all circumstances
|
||||
|
||||
<!-- YAML
|
||||
added: v22.5.0
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/66436
|
||||
description: Marked as release candidate.
|
||||
-->
|
||||
|
||||
> Stability: 1.1 - Active Development
|
||||
> Stability: 1.2 - Release candidate
|
||||
|
||||
* `ref` {Object | Function} The reference
|
||||
to the resource that is being tracked.
|
||||
@@ -2218,9 +2226,13 @@ this means that there is a possibility that the callback will not be called unde
|
||||
|
||||
<!-- YAML
|
||||
added: v22.5.0
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/66436
|
||||
description: Marked as release candidate.
|
||||
-->
|
||||
|
||||
> Stability: 1.1 - Active Development
|
||||
> Stability: 1.2 - Release candidate
|
||||
|
||||
* `ref` {Object | Function} The reference
|
||||
to the resource that was registered previously.
|
||||
|
||||
@@ -7,7 +7,6 @@ const {
|
||||
SafeWeakRef,
|
||||
} = primordials;
|
||||
const { validateObject, kValidateObjectAllowFunction } = require('internal/validators');
|
||||
const { emitExperimentalWarning } = require('internal/util');
|
||||
|
||||
function createFinalization() {
|
||||
/**
|
||||
@@ -97,7 +96,6 @@ function createFinalization() {
|
||||
* @param {Function} fn
|
||||
*/
|
||||
function register(obj, fn) {
|
||||
emitExperimentalWarning('process.finalization.register');
|
||||
validateObject(obj, 'obj', kValidateObjectAllowFunction);
|
||||
|
||||
_register('exit', obj, fn);
|
||||
@@ -110,7 +108,6 @@ function createFinalization() {
|
||||
* @param {Function} fn
|
||||
*/
|
||||
function registerBeforeExit(obj, fn) {
|
||||
emitExperimentalWarning('process.finalization.registerBeforeExit');
|
||||
validateObject(obj, 'obj', kValidateObjectAllowFunction);
|
||||
|
||||
_register('beforeExit', obj, fn);
|
||||
@@ -121,7 +118,6 @@ function createFinalization() {
|
||||
* @param {object} obj
|
||||
*/
|
||||
function unregister(obj) {
|
||||
emitExperimentalWarning('process.finalization.unregister');
|
||||
if (!registry) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user