PHP 8.2.30
Preview: inherits_browser.js Size: 753 B
/home/byroehnu/.trash/node_modules11/inherits/inherits_browser.js

if (typeof Object.create === 'function') {
  // implementation from standard node.js 'util' module
  module.exports = function inherits(ctor, superCtor) {
    if (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) {
    if (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
250 B lrw-r--r-- 2026-02-03 15:06:12
Edit Download
753 B lrw-r--r-- 2026-02-03 15:06:12
Edit Download
749 B lrw-r--r-- 2026-02-03 15:06:14
Edit Download
581 B lrw-r--r-- 2026-02-03 15:06:12
Edit Download
1.59 KB lrw-r--r-- 2026-02-03 15:06:14
Edit Download

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