Custom objects comparison

Mihai Dobrescu <[email protected]> Mon, 9 Jan 2017 01:52:35 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.jseng
Message-ID <[email protected]>
Hello,

Based on what are two objects compared?

I have an embedded object, actually an int32, that implements valueOf and toString.

I need to compare some object having a value against other object, havingsome value (possibly the same value, but different instance).

How do I get a comparison result for two instances based on their private values?

Thank you,
Mike