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

Cannot assign to a NaN variable #12595

Closed
AndyChYL opened this issue Jul 1, 2022 · 1 comment
Closed

Cannot assign to a NaN variable #12595

AndyChYL opened this issue Jul 1, 2022 · 1 comment

Comments

@AndyChYL
Copy link

AndyChYL commented Jul 1, 2022

Version

2.7.0

Reproduction link

codepen.io

Steps to reproduce

data() {
return {
test: NaN
}
}

created(){
this.test = 10
console.log(this.test) // output:NaN
}

What is expected?

10

What is actually happening?

NaN

@deftliang
Copy link
Contributor

maybe the Object.is polyfill function cause this case?

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 a pull request may close this issue.

2 participants