泄露的句柄
检测节点中泄漏的任何句柄
例子
require ( "leaked-handles" ) ;
示例输出。
no of handles 1
timer handle (`setTimeout(any, 1000)`)
timer handle leaked at one of:
at Test.t (/home/raynos/uber/leaked-handles/test/leak-timer.js:10:17)
timer listener function any() {}
no of handles 1
tcp handle leaked at one of:
at Test.t (/home/raynos/uber/leaked-handles/test/leak-tcp.js:9:22)
tcp stream { fd: 10,
read