-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
fix(EventEmitter) only apply if listener #35577 #36087
Conversation
Base commit: a6690bf |
Listeners should always be non-null. Could we consider fixing the calling packages instead? |
I agree with @javache. This can only happen if If the point at which this becomes an error is too confusing to debug dependent packages, I'd be amenable to introducing a type check in
|
Yes you guys are right I can adjust it over the weekend. |
|
I think I already landed this change in main. This PR can be closed now, right? |
@yungsters ah I didn't notice nice 👍 thx for the info |
Summary
During the rewrite of the event listeners in e5c5dcd a check was removed if the listener exists.
This change now checks that the listener is registred correctly.
Changelog
[INTERNAL] [FIXED] - make sure the event listener is registred correctly
Test Plan
Try to add an event listener without a proper func as parameter