Re: Custom objects comparison
Jan de Mooij <[email protected]> Mon, 9 Jan 2017 20:41:54 +0100
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <CABTC+JeHyo=p3jqSEjqytAXzp9Km_e2ikHL8McQ_24_dVPX1cg@mail.gmail.com> |
On Mon, Jan 9, 2017 at 8:12 PM, Mihai Dobrescu <[email protected]> wrote: > Having 2 instances of the same types, each with a private date of the same > type, like int32 value of 0 in each, I would need to get true from the > javascript comparison (a == b). > That's not possible. When a and b are objects, the engine compares the two pointers and there's no way to override that atm. HTH, Jan > _______________________________________________ > dev-tech-js-engine mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-js-engine >