D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
cpanel
/
ea-nodejs10
/
lib
/
node_modules
/
npm
/
node_modules
/
inherits
/
Filename :
inherits_browser.js
back
Copy
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 } } }
Name
Size
Last Modified
Owner
Permissions
Actions
LICENSE
0.731
KB
September 13 2023 2:48:05
root
0644
README.md
1.587
KB
September 13 2023 2:48:05
root
0644
inherits.js
0.244
KB
September 13 2023 2:48:05
root
0644
inherits_browser.js
0.735
KB
September 13 2023 2:48:05
root
0644
package.json
2.198
KB
September 13 2023 2:48:05
root
0644
2017 © D7net | D704T team