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(Transition): fix validate duration #1188

Merged
merged 1 commit into from
May 18, 2020

Conversation

underfin
Copy link
Member

No description provided.

return [n, n]
}
}

function toNumber(val: unknown): number {
const res = Number(val || 0)
function NumberOf(val: unknown): number {
Copy link
Member Author

@underfin underfin May 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug description:
When val = string => res = NaN => throw is NaN. This should throw isn't a number.
When val = NaN => res = 0 => check pass. This shold throw is NaN.

@yyx990803 yyx990803 merged commit d73a508 into vuejs:master May 18, 2020
@underfin underfin deleted the fix-duration-check branch June 3, 2020 01:41
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