Our current setup for custom hashing objects to to give them a method .getHash() which looks like this:
T.prototype.getHash = function () {
var someSubsetOfT = // code here return ve.getHash( someSubsetOfT );
}
and to invoke we use
ve.getHash( instanceOfT );
However ve.getHash( instanceOfT ) === ve.getHash( ve.getHash( someSubsetOfT ) )
which isn't really what we want.
One solution would be to rename getHash to getHashableObject (or something) and have it return just someSubsetOfT directly.
Version: unspecified
Severity: normal