diff options
Diffstat (limited to 'node_modules/@babel/runtime/helpers/inherits.js')
| -rw-r--r-- | node_modules/@babel/runtime/helpers/inherits.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/@babel/runtime/helpers/inherits.js b/node_modules/@babel/runtime/helpers/inherits.js new file mode 100644 index 00000000..766ce4a9 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/inherits.js @@ -0,0 +1,12 @@ +var setPrototypeOf = require("./setPrototypeOf"); + +function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + + setPrototypeOf(subClass.prototype, superClass && superClass.prototype); + if (superClass) setPrototypeOf(subClass, superClass); +} + +module.exports = _inherits;
\ No newline at end of file |
