aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/es6/newArrowCheck.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/runtime/helpers/es6/newArrowCheck.js')
-rw-r--r--node_modules/@babel/runtime/helpers/es6/newArrowCheck.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/node_modules/@babel/runtime/helpers/es6/newArrowCheck.js b/node_modules/@babel/runtime/helpers/es6/newArrowCheck.js
new file mode 100644
index 00000000..d6cd8643
--- /dev/null
+++ b/node_modules/@babel/runtime/helpers/es6/newArrowCheck.js
@@ -0,0 +1,5 @@
+export default function _newArrowCheck(innerThis, boundThis) {
+ if (innerThis !== boundThis) {
+ throw new TypeError("Cannot instantiate an arrow function");
+ }
+} \ No newline at end of file