swc/packages/swc-helpers/esm/_new_arrow_check.js

5 lines
187 B
JavaScript
Raw Normal View History

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