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

test(reactivity): fix unit test case that don't make sense #3884

Closed
wants to merge 2 commits into from

Conversation

originalix
Copy link

@originalix originalix commented Jun 4, 2021

This proto case declares the prototype variable but is never used. And the otherObj variable has nothing to do with this use case.

__proto__ is one of the non trackable keys, so it should return original.

I use Object.create({}) instead {} that can fix ts error and remove @ts-ignore.

@yyx990803
Copy link
Member

As the comment suggests, it is intentionally testing the side effect of reading __proto__. See #1107

@yyx990803 yyx990803 closed this Jun 8, 2021
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.

2 participants