local-npm-daemon
local-npm-daemon copied to clipboard
request listener registration error
Hi all, I've been working on a tool to identify instances of events registered to the wrong object in uses of some JavaScript event-driven APIs, as part of a research project.
The tool flagged line 37 in index.js in the root directory of the repo, on the registration of the listener for request.
The reason I believe this is an error is as follows (from looking at the nodejs process API documentation):
the listener for request is registered on the process global object.
This object is implicitly imported, as described in the process documentation.
request is not an event on process.Process.
Thanks!