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: emits can be an object #542

Merged
merged 1 commit into from Apr 19, 2021
Merged

Conversation

cexbrayat
Copy link
Member

The fix introduced in #521 only accounts for emits define as an array, but it can also be define as an object.
The latest rc.5 release breaks on components that use an object to define emits with:

TypeError: emits.includes is not a function

This commit fixes the unit test to have both cases check, and the relevant code to properly handle the object case.

The fix introduced in vuejs#521 only account for emits define as an array, but it can also be define as an object.
The latest rc.5 release breaks on components that use an object to define emits with:

    TypeError: emits.includes is not a function

This commit fixes the unit test to have both cases check, and the relevant code to properly handle the object case.
@lmiller1990 lmiller1990 merged commit fb92c07 into vuejs:master Apr 19, 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.

None yet

2 participants