Skip to content

fix: eliminate use of instanceof #2629

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

Closed
wants to merge 1 commit into from

Conversation

goldsam
Copy link

@goldsam goldsam commented May 30, 2017

Description:
Eliminate use of instanceof to support passing observables between javascript contexts

Related issue (if exists):
Closes #2628

eliminate use of instanceof to support passing observables between javascript contexts

Closes ReactiveX#2628
@coveralls
Copy link

coveralls commented May 30, 2017

Coverage Status

Coverage increased (+0.001%) to 97.736% when pulling 3c62bd6 on goldsam:trans-js-context-support into 279d775 on ReactiveX:master.

@kwonoj
Copy link
Member

kwonoj commented May 30, 2017

Leving comment for fyi: let's discussion continues on issue itself at #2628.

@benlesh
Copy link
Member

benlesh commented Jun 14, 2017

Given that the workaround for the corner case issue this is solving is a simple Observable.from, I'm opposed to this change unless we can prove there's no performance impact.

Adding a function call, 2 property lookups, 2 typeof's and 3 assertions, instead of a single instanceof check everywhere we want to assert that it's our Observable instance? Seems extreme to solve a rare problem.

@benlesh
Copy link
Member

benlesh commented Sep 19, 2017

Given the lack of action on this, and my general disagreement, I'm going to close this issue for now.

@benlesh benlesh closed this Sep 19, 2017
@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.

5 participants