Skip to content

Conflicts between variable in templates and built-in function name #9482

@depux

Description

@depux

Vue version

v3.3.7

Link to minimal reproduction

https://play.vuejs.org/#eNqVUl1LwzAU/SvXILTD2aG+yTZQGagPU1TwJQi1vduqaVKSmzko/e/eZHT6MAe+Jefjcs5NWnHVNNnao7gUY1fYqiFwSL6ZSl3VjbEELVhcDKEwdeMJS+hgYU0NCZsSqaUujHYEtVvCJCjT5BaVMvBqrCqPkkEv0L5+mrFk9CZleXI86vHKzfM54/38NB3AZApHUZ8ROkp5drbOlcfBbhq7DM19/Q/jeLTtx834Qlg3KifkG8B4dTZt29ih68Yjvm3Rc1ifupX5mkgRY0oxvaPEgTYEeWj0jhbSSA3Ydr7XFnP+6YzsL3OluQz7a1Oi4gGcib0h/S6xGApyvIZFtcw+nNH8dG3wShFWUSm0Dw1VvCYpLiEygcv5Ub7uI0bW47DHixUWn3vwD7cJmBSPFh3aNUqx4yi3S6QtPXue44bPO5KTe8XqA+QTOqN8yLiVXXtdcuxfupj2Ln7ASi9f3GxDqF1fKgQNyi7qpeCveHOg+k/ci+wi+qTuRPcN6Q378g==

Steps to reproduce

1、Define a variable with the same name as a built-in function.
2、Use that variable in the template.
3、Type numbers and non-numbers in the text boxes respectively.

What is expected?

The two h2 above should change in exactly the same way when the input changes

What is actually happening?

The two h2 behave differently when typing numbers and non-numbers in the text box respectively

System Info

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy