swc/packages/helpers/esm/_new_arrow_check.js

5 lines
187 B
JavaScript

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