Вход Регистрация
Файл: error-kitty/node_modules/mocha/node_modules/glob/node_modules/inherits/inherits_browser.js
Строк: 20
<?php
if (typeof Object.create === 'function') {
  
// implementation from standard node.js 'util' module
  
module.exports = function inherits(ctorsuperCtor) {
    
ctor.super_ superCtor
    ctor
.prototype Object.create(superCtor.prototype, {
      
constructor: {
        
valuector,
        
enumerablefalse,
        
writabletrue,
        
configurabletrue
      
}
    });
  };
} else {
  
// old school shim for old browsers
  
module.exports = function inherits(ctorsuperCtor) {
    
ctor.super_ superCtor
    
var TempCtor = function () {}
    
TempCtor.prototype superCtor.prototype
    ctor
.prototype = new TempCtor()
    
ctor.prototype.constructor ctor
  
}
}
?>
Онлайн: 1
Реклама