Files
node/lib
James M Snell 1f7e8d609a 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 https://github.com/nodejs/node/pull/44325

Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/45032
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2022-10-19 00:43:11 +00:00
..
2022-06-11 12:18:15 +02:00
2022-08-11 13:07:52 +00:00
2022-06-11 12:18:11 +02:00
2022-08-17 16:08:58 +00:00
2022-10-04 09:44:08 +00:00
2022-10-17 08:22:04 +00:00
2022-09-08 09:33:20 +00:00