diff options
Diffstat (limited to 'node_modules/@babel/runtime/helpers/builtin/es6/classCallCheck.js')
| -rw-r--r-- | node_modules/@babel/runtime/helpers/builtin/es6/classCallCheck.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/node_modules/@babel/runtime/helpers/builtin/es6/classCallCheck.js b/node_modules/@babel/runtime/helpers/builtin/es6/classCallCheck.js new file mode 100644 index 00000000..2f1738a3 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/builtin/es6/classCallCheck.js @@ -0,0 +1,5 @@ +export default function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +}
\ No newline at end of file |
