Skip to content

JSON.stringify in looseEqual does not have necessary keys in the same order #5908

Closed
@mitar

Description

@mitar

I see that in looseEqual function you are using JSON.stringify, but JSON.stringify has no quarantines on key order when serializing. See here:

Properties of non-array objects are not guaranteed to be stringified in any particular order. Do not rely on ordering of properties within the same object within the stringification.

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