Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: add ability to add separate event name to defineEventHandler #45032

Merged
merged 1 commit into from Oct 19, 2022

Commits on Oct 16, 2022

  1. lib: add ability to add separate event name to defineEventHandler

    Adds an optional third argument to `defineEventHandler()` to specify
    an event name that is separate from the name used for the property.
    This will be used, for instance, by the quic implementation to support
    generating the `on...` events where the event name itself is hyphenated.
    For instance `defineEventHandler(target, 'streamreset', 'stream-reset')`
    
    Separated out from nodejs#44325
    
    Signed-off-by: James M Snell <jasnell@gmail.com>
    jasnell committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    f0a3b03 View commit details
    Browse the repository at this point in the history