PHP 8.2.30
Preview: inherits_browser.js Size: 672 B
/opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/node_modules/inherits/inherits_browser.js

if (typeof Object.create === 'function') {
  // implementation from standard node.js 'util' module
  module.exports = function inherits(ctor, superCtor) {
    ctor.super_ = superCtor
    ctor.prototype = Object.create(superCtor.prototype, {
      constructor: {
        value: ctor,
        enumerable: false,
        writable: true,
        configurable: true
      }
    });
  };
} else {
  // old school shim for old browsers
  module.exports = function inherits(ctor, superCtor) {
    ctor.super_ = superCtor
    var TempCtor = function () {}
    TempCtor.prototype = superCtor.prototype
    ctor.prototype = new TempCtor()
    ctor.prototype.constructor = ctor
  }
}

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
192 B lrw-r--r-- 2021-09-28 09:36:08
Edit Download
672 B lrw-r--r-- 2021-09-28 09:36:08
Edit Download
749 B lrw-r--r-- 2021-09-28 09:36:08
Edit Download
2.93 KB lrw-r--r-- 2021-09-28 09:36:08
Edit Download
1.59 KB lrw-r--r-- 2021-09-28 09:36:08
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).