iwmlib/lib/3rdparty/systemjs/babel-helpers/newArrowCheck.js
2019-04-05 10:09:27 +02:00

5 lines
155 B
JavaScript

export default (function (innerThis, boundThis) {
if (innerThis !== boundThis) {
throw new TypeError("Cannot instantiate an arrow function");
}
});