Web Inspector: Object.shallowEqual always fails when comparing array property values
authormattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Feb 2018 20:40:10 +0000 (20:40 +0000)
committermattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Feb 2018 20:40:10 +0000 (20:40 +0000)
commitf535e0c7e21ba3a79e1e581526a5ee38b7880916
treec8fc142e8ebc8537cfa69dbbe5ce41b919bf23bd
parente71fd5411144c993b56e5b3d5bc9d1b84a3b7698
Web Inspector: Object.shallowEqual always fails when comparing array property values
https://bugs.webkit.org/show_bug.cgi?id=182634
<rdar://problem/37374639>

Reviewed by Devin Rousso.

Source/WebInspectorUI:

Object.shallowEqual should use Array.shallowEqual when comparing property
values, since strictly comparing objects/arrays is only true if both
operands reference the same Object.

* UserInterface/Base/Utilities.js:
(value):

LayoutTests:

* inspector/unit-tests/object-utilities-expected.txt:
* inspector/unit-tests/object-utilities.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/unit-tests/object-utilities-expected.txt
LayoutTests/inspector/unit-tests/object-utilities.html
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Base/Utilities.js