diff options
Diffstat (limited to 'alarm/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js')
-rw-r--r-- | alarm/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/alarm/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js b/alarm/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js new file mode 100644 index 0000000..9901403 --- /dev/null +++ b/alarm/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js @@ -0,0 +1,5 @@ +export default function _checkPrivateRedeclaration(obj, privateCollection) { + if (privateCollection.has(obj)) { + throw new TypeError("Cannot initialize the same private elements twice on an object"); + } +}
\ No newline at end of file |