checkPrivateRedeclaration.js 209 B

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