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

ES6 extended arrays are mutated into vanilla arrays #8963

Closed
AimForNaN opened this issue Oct 17, 2018 · 1 comment
Closed

ES6 extended arrays are mutated into vanilla arrays #8963

AimForNaN opened this issue Oct 17, 2018 · 1 comment

Comments

@AimForNaN
Copy link

Version

2.5.17

Reproduction link

https://jsfiddle.net/truefusion/hLzg2w8b/

Steps to reproduce

Extend an Array.
Instantiate the new class.
Assign it to a component property that is observable by Vue.
Access the property in the console.

What is expected?

The reference to maintain its instantiated class.

What is actually happening?

The instantiated class is mutated into a regular array.


Tested in latest version of Chrome. Not sure about the rest (but for my purposes the other browsers are irrelevant for my project).

@posva
Copy link
Member

posva commented Oct 17, 2018

Duplicate of #5893

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

No branches or pull requests

2 participants