summaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js')
-rw-r--r--node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js b/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js
index 34876843..6492cc1e 100644
--- a/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js
+++ b/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js
@@ -1,6 +1,5 @@
-function _classCheckPrivateStaticAccess(receiver, classConstructor) {
- if (receiver !== classConstructor) {
- throw new TypeError("Private static access of wrong provenance");
- }
+var assertClassBrand = require("./assertClassBrand.js");
+function _classCheckPrivateStaticAccess(receiver, classConstructor, returnValue) {
+ return assertClassBrand(classConstructor, receiver, returnValue);
}
module.exports = _classCheckPrivateStaticAccess, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file