| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
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>
There was a problem hiding this comment.
lgmt
Sorry, something went wrong.
Sorry, something went wrong.
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 #44325 Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #45032 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
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 #44325 Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #45032 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
|
@jasnell this didn't land cleanly on v18.x. Do you mind backporting this? Thank you. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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 #44325
This is an internal only api so no documentation change is needed.
Signed-off-by: James M Snell jasnell@gmail.com