The docblock for inheritClass uses this code snippet as an example:
function Thing() {} Thing.prototype.exists = function () {}; function Person() { this.constructor.super.apply( this, arguments ); } oo.inheritClass( Person, Thing ); Person.static.defaultEyeCount = 2; Person.prototype.walk = function () {}; function Jumper() { this.constructor.super.apply( this, arguments ); } OO.inheritClass( Jumper, Person ); Jumper.prototype.jump = function () {}; Jumper.static.defaultEyeCount === 2; var x = new Jumper();
When actually executed, this will result in an infinite recursion since this.constructor.super does not change as the call progresses up the inheritance chain.
Version: unspecified
Severity: trivial