_class_private_method_get.js 322 B

1234567891011
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = _classPrivateMethodGet;
  6. function _classPrivateMethodGet(receiver, privateSet, fn) {
  7. if (!privateSet.has(receiver)) {
  8. throw new TypeError("attempted to get private field on non-instance");
  9. }
  10. return fn;
  11. }