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

Support CLR object inheritance chain with prototypes #1518

Merged
merged 13 commits into from Mar 30, 2023

Conversation

mainlyer
Copy link
Contributor

Hi! Added a case for instanceof operator comparing the prototype against the type reference. Now the following code works when B is derived from A:

A.prototype instanceof A // true
B.prototype instanceof A // true

Regards.

@lahma lahma changed the title CLR object inheritance chain Support CLR object inheritance chain with prototypes Mar 30, 2023
@lahma lahma merged commit 9984761 into sebastienros:main Mar 30, 2023
3 checks passed
@lahma
Copy link
Collaborator

lahma commented Mar 30, 2023

Thank you! I made small adjustments for clarity.

@mainlyer mainlyer deleted the clr-object-inheritance-chain branch March 30, 2023 08:31
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.

None yet

2 participants