Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
child_process: add hasRef to ChildProcess
Refs: nodejs#42091 The issue above reported a specific use case about `Timer.hasRef`. After reading the issue, I started thinking users may naturally expect `hasRef` method if `ref` and `unref` exist on an object they use. As of now, however, `hasRef` exists on `Timer` only. This commit suggests adding `hasRef` method to `ChildProcess` first. There are more similar cases. (fs.FSWatcher, fs.StatWatcher, net.Socket, and so on)
- Loading branch information