newArrowCheck.js 185 B

1234567
  1. function _newArrowCheck(innerThis, boundThis) {
  2. if (innerThis !== boundThis) {
  3. throw new TypeError("Cannot instantiate an arrow function");
  4. }
  5. }
  6. module.exports = _newArrowCheck;