Sha256: 8fcff1f2c7922c8faa24575cdec0675c353c68d064667bcd04c8a9ba8481b499

Contents?: true

Size: 505 Bytes

Versions: 48

Compression:

Stored size: 505 Bytes

Contents

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");
  }

  subClass.prototype = Object.create(superClass && superClass.prototype, {
    constructor: {
      value: subClass,
      writable: true,
      configurable: true
    }
  });
  if (superClass) setPrototypeOf(subClass, superClass);
}

module.exports = _inherits;

Version data entries

48 entries across 48 versions & 8 rubygems

Version Path
ezii-os-5.2.1 node_modules/@babel/runtime/helpers/inherits.js
ezii-os-2.0.1 node_modules/@babel/runtime/helpers/inherits.js
ezii-os-1.1.0 node_modules/@babel/runtime/helpers/inherits.js
ezii-os-1.0.0 node_modules/@babel/runtime/helpers/inherits.js
condenser-0.0.7 lib/condenser/processors/node_modules/@babel/runtime/helpers/inherits.js
ezii-os-0.0.0.1.0 node_modules/@babel/runtime/helpers/inherits.js
ezii-os-0.0.0.0.1 node_modules/@babel/runtime/helpers/inherits.js
condenser-0.0.5 lib/condenser/processors/node_modules/@babel/runtime/helpers/inherits.js