Skip to content

Fix a bug in ObjectUtils::areSimpleEquivalent method

Created by: jeremco

If objects have same parameters but declared in a different order, string obtained using JSON.stringify() will be different and the method will return false, whereas it should return true.

The fix uses deep-equal module to avoid this bug.

I have although added a unit test to test the solution (in streaming.utils.ObjectUtils.js file) : using JSON.stringify(), the unit test fails, using deep-equal module, the test is in success

Merge request reports