mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
13 lines
545 B
JavaScript
13 lines
545 B
JavaScript
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
var _message = /*#__PURE__*/new WeakMap();
|
|
class _TypeError {
|
|
constructor() {
|
|
_classPrivateFieldInitSpec(this, _message, {
|
|
writable: true,
|
|
value: void 0
|
|
});
|
|
}
|
|
}
|
|
export { _TypeError as TypeError };
|