Skip to content

Cannot assign to a NaN variable #12595

@AndyChYL

Description

@AndyChYL

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions