Sha256: 67339cd8a06094573c36b57765f476327bea44cbe2289433ff7ab3de2ca39ab5

Contents?: true

Size: 490 Bytes

Versions: 34

Compression:

Stored size: 490 Bytes

Contents

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
    }
  });
  if (superClass) setPrototypeOf(subClass, superClass);
}

Version data entries

34 entries across 33 versions & 5 rubygems

Version Path
isomorfeus-preact-10.5.7 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-preact-10.5.6 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-preact-10.5.5 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-preact-10.5.4 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.6 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-preact-10.5.3 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.5 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-preact-10.5.2 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.4 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.3 node_modules/@babel/runtime/helpers/esm/inherits.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/@babel/runtime/helpers/esm/inherits.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/@babel/runtime/helpers/esm/inherits.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/@babel/runtime/helpers/esm/inherits.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/@babel/runtime/helpers/esm/inherits.js