summaryrefslogtreecommitdiff
path: root/school/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js
diff options
context:
space:
mode:
Diffstat (limited to 'school/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js')
-rw-r--r--school/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/school/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js b/school/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js
new file mode 100644
index 0000000..1bbfd34
--- /dev/null
+++ b/school/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js
@@ -0,0 +1,6 @@
+function _checkPrivateRedeclaration(obj, privateCollection) {
+ if (privateCollection.has(obj)) {
+ throw new TypeError("Cannot initialize the same private elements twice on an object");
+ }
+}
+module.exports = _checkPrivateRedeclaration, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file