Sha256: a8d113ff48f51be017c5e86e739d890d111200d66c33c28bfb308160af5ca563
Contents?: true
Size: 862 Bytes
Versions: 28
Compression:
Stored size: 862 Bytes
Contents
module.exports = inherits function inherits (c, p, proto) { proto = proto || {} var e = {} ;[c.prototype, proto].forEach(function (s) { Object.getOwnPropertyNames(s).forEach(function (k) { e[k] = Object.getOwnPropertyDescriptor(s, k) }) }) c.prototype = Object.create(p.prototype, e) c.super = p } //function Child () { // Child.super.call(this) // console.error([this // ,this.constructor // ,this.constructor === Child // ,this.constructor.super === Parent // ,Object.getPrototypeOf(this) === Child.prototype // ,Object.getPrototypeOf(Object.getPrototypeOf(this)) // === Parent.prototype // ,this instanceof Child // ,this instanceof Parent]) //} //function Parent () {} //inherits(Child, Parent) //new Child
Version data entries
28 entries across 23 versions & 8 rubygems