This commit is contained in:
Daniel Rodriguez 2019-08-19 20:00:53 +02:00
parent 2e12f90b7f
commit a7de236f3f
540 changed files with 65753 additions and 11694 deletions

23
node_modules/inherits/inherits_browser.js generated vendored Normal file
View file

@ -0,0 +1,23 @@
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
}
}