summaryrefslogtreecommitdiff
path: root/alarm/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js
blob: 990140366625c949a8ffee1da66ee3112d7fc711 (plain)
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");
  }
}