Skip to content

Are all properties now intended to be readonly since v0.6.1? Error "TypeError: Cannot assign to read only property 'OtherProperty' of object '#<Object>'" after the update #689

@ceisele-r

Description

@ceisele-r

After updating from v0.6.0 to v0.6.1, we are facing issues like the following:

TypeError: Cannot assign to read only property 'OtherProperty' of object '#<Object>'

The issue occurs when doing something like this:

const parser = new Parser();
const data = await parser.parseStringPromise(fileXml);
data.SomeProperty.OtherProperty = ["some"]; // Error happens here

Is it intended that all properties are now readonly (/is this the result of the recent CVE fixes)?
I am wondering because when looking at the diff from v0.6.0 to v0.6.1, here it seems that properties should still be defined writable.

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