test/dummy/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js in disco_app-0.18.1 vs test/dummy/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js in disco_app-0.18.2
- old
+ new
@@ -1,9 +1,9 @@
-var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
-
function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
- classCheckPrivateStaticAccess(receiver, classConstructor);
+ if (receiver !== classConstructor) {
+ throw new TypeError("Private static access of wrong provenance");
+ }
+
return method;
}
-module.exports = _classStaticPrivateMethodGet;
-module.exports["default"] = module.exports, module.exports.__esModule = true;
+module.exports = _classStaticPrivateMethodGet;
\ No newline at end of file