Skip to content

defineProperty should consider that descriptor.value is undefined when calling handleChangeOnTarget #79

@Baumgaer

Description

@Baumgaer

Hi there again :'D,

currently I am running into a strange Bug in combination with VUE.
VUE defines its own properties on an object but does not define a value on the propertyDescriptor.
on-change's defineProperty (line 132) method is assuming, that this is always set. In my case the "current" value is determined in a wrong way so that it is always undefined at the first time. You should check with

if ("value" in descriptor)

if it is avalable and use descriptor.get() otherwise

maybe it has to be checked earlyer to be sure that there is a change or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions