-
Notifications
You must be signed in to change notification settings - Fork 30k
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
events: support dispatching event from event #33624
Conversation
@jasnell I think you might have missed this one :] |
950969e
to
3b6e3f1
Compare
3b6e3f1
to
adaed1b
Compare
8ae28ff
to
2935f72
Compare
adaed1b
to
f24f1b5
Compare
2152292
to
ea03a7a
Compare
Ping @benjamingr ... tests are failing on this one. |
@jasnell sorry, I was (mostly) AFK and am (mostly) AFK for the coming week (except the summit). I will do one pass over all the PRs you pinged me at and fix/rebase them over master. I feel like this landing part is harder than it should so feel free to either squash them all into one PR and land it as one change, or to just make all the changes directly (I really don't mind the git attribution being precise) or whatever is most convenient to you. Again: my objective is to be helpful and to do the least toe-stepping :] |
Event#cancelBubble is property (and not a function). Change Event#cancelBubble to a property and add a test. PR-URL: nodejs#33613 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
PR-URL: nodejs#33623 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
92d841d
to
5b397ab
Compare
@benjamingr ... yeah, it's been pretty painful doing these piece by piece. I think I'll go ahead and combine all the changes into a single PR. |
@jasnell I am starting to see what you meant by "take it to a vendored dep" back then :] Anyway, whatever is easiest and least painful for you. Another thing we can do is open one PR that will stay open for a few days on a branch, then we can push all the changes to that branch and merge that after a few days or something. |
Closing in favor of #34015 (which combines this and other |
Currently our events guard against dispatching an event from itself by type rather than by event instance. This makes a WPT test fail.
Here's some code to demonstrate the issue.
Dispatching an event while handling it is still not supported (as required).
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes