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

fix(event): uses Object.prototype.toString.call on objects #2143

Merged
merged 1 commit into from
Nov 20, 2016
Merged

fix(event): uses Object.prototype.toString.call on objects #2143

merged 1 commit into from
Nov 20, 2016

Conversation

estobbart
Copy link
Contributor

Description:

Objects created with a null prototype do not have a toString method.

@coveralls
Copy link

coveralls commented Nov 20, 2016

Coverage Status

Coverage increased (+0.0004%) to 97.686% when pulling 1c02451 on estobbart:master into 836fb1f on ReactiveX:master.

@coveralls
Copy link

coveralls commented Nov 20, 2016

Coverage Status

Coverage increased (+0.0004%) to 97.686% when pulling 1251c10 on estobbart:master into 836fb1f on ReactiveX:master.

@jayphelps
Copy link
Member

For completeness, can you give a real world example of why someone would listen to events on an object without a prototype?

@estobbart
Copy link
Contributor Author

If you create a WebKit browser, for example GTK, and then use JavaScriptCore to add a custom JSObjectRef that fires events, JSObjectMake accepts a JSClassRef structure, to be used as the prototype.

@jayphelps
Copy link
Member

Seems legit. Thanks.

LGTM

@jayphelps jayphelps merged commit e036e79 into ReactiveX:master Nov 20, 2016
@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants