Skip to content

The never-ending loop will cause a "call stack size exceeded" problem. #4562

Closed
@Becavalier

Description

@Becavalier

Vue.js version

2.1.7

Reproduction Link

https://jsfiddle.net/Becavalier/hjdk9e5u/6/

Steps to reproduce

Just run the code.

What is Expected?

Throwing a warning or an error with accurate message.

What is actually happening?

[Vue warn]: Error when rendering root instance: 
Uncaught RangeError: Maximum call stack size exceeded
    at Vue$3.value (v-if,v-else,v-show.html:25)
    at Watcher.get (vue.js:1663)
    at Watcher.evaluate (vue.js:1771)
    at Vue$3.computedGetter [as value] (vue.js:1960)
    at Vue$3.value (v-if,v-else,v-show.html:25)
    at Watcher.get (vue.js:1663)
    at Watcher.evaluate (vue.js:1771)
    at Vue$3.computedGetter [as value] (vue.js:1960)
    at Vue$3.value (v-if,v-else,v-show.html:25)
    at Watcher.get (vue.js:1663)

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