Skip to content

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

Closed
@privatenumber

Description

@privatenumber

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.

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