iwmlib/lib/3rdparty/systemjs/babel-helpers/classCallCheck.js

5 lines
164 B
JavaScript
Raw Normal View History

2019-04-05 10:09:27 +02:00
export default (function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
});