You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I'm pleased to see that you do correctly return a non-empty diff for diff([], Object.create(Array.prototype)), though.)
For most objects it would be reasonable to report different prototypes using __proto__ notation, but for objects created using Object.create(null) or which have had an Object.defineProperty(o, '__proto__') done to them some other notation will be necessary.
The text was updated successfully, but these errors were encountered:
These comparisons should all report some difference, but in fact do not:
(I'm pleased to see that you do correctly return a non-empty diff for
diff([], Object.create(Array.prototype))
, though.)For most objects it would be reasonable to report different prototypes using
__proto__
notation, but for objects created usingObject.create(null)
or which have had anObject.defineProperty(o, '__proto__')
done to them some other notation will be necessary.The text was updated successfully, but these errors were encountered: