forked from ard/ruoyi-api

zhangnaisong
2024-08-02 a6205cbf1a93ea8f77a771de2dbd68c8f1e52ebe
1
2
3
4
5
export default function _checkPrivateRedeclaration(obj, privateCollection) {
  if (privateCollection.has(obj)) {
    throw new TypeError("Cannot initialize the same private elements twice on an object");
  }
}