Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
586 bytes
|
Line | |
---|
1 | var setPrototypeOf = require("./setPrototypeOf.js");
|
---|
2 |
|
---|
3 | function _inherits(subClass, superClass) {
|
---|
4 | if (typeof superClass !== "function" && superClass !== null) {
|
---|
5 | throw new TypeError("Super expression must either be null or a function");
|
---|
6 | }
|
---|
7 |
|
---|
8 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
---|
9 | constructor: {
|
---|
10 | value: subClass,
|
---|
11 | writable: true,
|
---|
12 | configurable: true
|
---|
13 | }
|
---|
14 | });
|
---|
15 | if (superClass) setPrototypeOf(subClass, superClass);
|
---|
16 | }
|
---|
17 |
|
---|
18 | module.exports = _inherits;
|
---|
19 | module.exports["default"] = module.exports, module.exports.__esModule = true; |
---|
Note:
See
TracBrowser
for help on using the repository browser.