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

Method not bound handling #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mfbonfigli
Copy link

If requested method has not been bound to the channel the provided error function is not invoked, so the caller never gets to know what happened and why. There are instances (let's think about browser extensions and the separation between content_script and background script) in which it is not easy to understand if bind has already been executed in the other context, so having a way to reliably know that allows a proper management of these situations.
With this pull request the channel invokes the error function even when the caller requested a method that is not bound instead of simply ignoring the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant