Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ enabledWithInitOnly
Function
enabledWithInitOnly
benchmark/async_hooks/promises.js:23–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
21
}).enable();
22
},
23
enabledWithInitOnly() {
24
hook = createHook({
25
init() {},
26
}).enable();
27
},
28
};
29
30
const
bench = common.createBenchmark(main, {
Callers
nothing calls this directly
Calls
2
createHook
Function · 0.50
enable
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…