Skip to content

request listener registration error #1

@emarteca

Description

@emarteca

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions