local-npm-daemon icon indicating copy to clipboard operation
local-npm-daemon copied to clipboard

request listener registration error

Open emarteca opened this issue 5 years ago • 0 comments

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!

emarteca avatar Jan 17 '20 01:01 emarteca