On 5/14/15 8:03 AM, Mike de Boer wrote:
Same goes for Gecko wrapper objects, like `window`. When you want to use 
`deepEqual` with those, anyone should feel free to add support for it!

Here's the thing. When comparing window objects, in what sense would anything other than === be useful?

And in general, deepEquals (structural type equality) and === (reference identity equality) are just completely different operations for objects. Sometimes you want one, sometimes the other. In practice, for tests of the DOM, structural type equality is almost never the desired type of equality.

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to