_check_private_redeclaration.js 330 B

12345678910
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = _checkPrivateRedeclaration;
  6. function _checkPrivateRedeclaration(obj, privateCollection) {
  7. if (privateCollection.has(obj)) {
  8. throw new TypeError("Cannot initialize the same private elements twice on an object");
  9. }
  10. }