Skip to content

mergeData cannot works properly with Array #4191

Closed
@zhu

Description

@zhu

Vue.js version

2.0.5

Reproduction Link

https://jsfiddle.net/crjL62kL/4/

Steps to reproduce

1 Create an array
2 Add something to Array.prototype or add some property to the array obj
3 use this array as data and trigger mergeData

What is Expected?

the array is merged withou error and without key-values in prototype

What is actually happening?

TypeError or key-values in prototype is copy to the array

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