MCPcopy Index your code
hub / github.com/nodejs/node / deregister

Method deregister

lib/internal/modules/customization_hooks.js:93–103  ·  view source on GitHub ↗

* Deregister the hook instance.

()

Source from the content-addressed store, hash-verified

91 * Deregister the hook instance.
92 */
93 deregister() {
94 const id = this[hookId];
95 let index = ArrayPrototypeFindIndex(resolveHooks, (hook) => hook[hookId] === id);
96 if (index !== -1) {
97 ArrayPrototypeSplice(resolveHooks, index, 1);
98 }
99 index = ArrayPrototypeFindIndex(loadHooks, (hook) => hook[hookId] === id);
100 if (index !== -1) {
101 ArrayPrototypeSplice(loadHooks, index, 1);
102 }
103 }
104};
105
106/**

Calls

no outgoing calls

Tested by

no test coverage detected