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

Injection "__ob__" not found. Reflect.ownKeys !== Object.keys #6574

Closed
privatenumber opened this issue Sep 11, 2017 · 1 comment
Closed

Injection "__ob__" not found. Reflect.ownKeys !== Object.keys #6574

privatenumber opened this issue Sep 11, 2017 · 1 comment

Comments

@privatenumber
Copy link
Contributor

privatenumber commented Sep 11, 2017

Version

2.4.2

Steps to reproduce

Not actually sure what is causing the object to be observed (__ob__ to be added); will try to create a minimal repro later.

Update: Repro link: https://jsfiddle.net/49gptnad/508/

screen shot 2017-09-11 at 3 59 17 pm

What is expected?

For __ob__ to not be considered an injection.

What is actually happening?

screen shot 2017-09-11 at 4 00 06 pm

As shown in the first screenshot, this seems to be happening because of the usage of Reflect.ownKeys(), which apparently does Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target)), which is returning non-enumerable keys.

@privatenumber
Copy link
Contributor Author

Here's the reproduction link: https://jsfiddle.net/49gptnad/508/

__ob__ gets added because it's being added to a data().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants