iwmlib/3rdparty/systemjs/babel-helpers/classCallCheck.js
2019-03-21 09:57:27 +01:00

5 lines
164 B
JavaScript
Executable File

export default (function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
});