All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javaemul.internal.HashCodes.native.js Maven / Gradle / Ivy

The newest version!
/**
 * @param {*} obj
 * @return {number}
 * @public
 */
HashCodes.getObjectIdentityHashCode = function(obj) {
  const o = /** @type {!Object} */ (obj);
  return o.$systemHashCode ||
      (Object.defineProperties(o, {
           $systemHashCode: {value: HashCodes.getNextHash(), enumerable: false}
         }),
       o.$systemHashCode);
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy