Nope
As you have it written, the prototype is only setup once. However, that's not a very good way to write it.
I would write it like this
var ReportsServiceCall = function () {
// parent constructor; optional
ServiceCall.call(this);
};
// setup prototype; see comment below
ReportsServiceCall.prototype = Object.create(ServiceCall.prototype, {
constructor: {
value: ReportsServiceCall,
enumerable: false,
writable: true,
configurable: true
}
});
Note: Aside from setting super_
, this is how node.js is doing vanilla inheritance in their util.inherits function.
This is very effective technique once you understand how it works.