diff options
Diffstat (limited to 'school/node_modules/@babel/runtime/helpers/esm/inherits.js')
-rw-r--r-- | school/node_modules/@babel/runtime/helpers/esm/inherits.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/school/node_modules/@babel/runtime/helpers/esm/inherits.js b/school/node_modules/@babel/runtime/helpers/esm/inherits.js deleted file mode 100644 index 0b0a0ea..0000000 --- a/school/node_modules/@babel/runtime/helpers/esm/inherits.js +++ /dev/null @@ -1,17 +0,0 @@ -import setPrototypeOf from "./setPrototypeOf.js"; -export default function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) setPrototypeOf(subClass, superClass); -}
\ No newline at end of file |