-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Object.prototype.inheritsFrom = function (shuper) {
try {
function Inheriter() { }
Inheriter.prototype = shuper.prototype;
this.prototype = new Inheriter();
this.superConstructor = shuper;
} catch (error) {
console.error("Inheritance error: " + error + error.stack);
}
}
function UnaryConstraint(v, strength) {
try {
UnaryConstraint.superConstructor.call(this, strength);
this.myOutput = v;
this.satisfied = false;
} catch (error) {
console.error("Inheritance error: " + error + error.stack);
}
}
function Constraint(strength) {
this.strength = strength;
}
UnaryConstraint.inheritsFrom(Constraint)
com.caoccao.qjs4j.exceptions.JSException: TypeError: UnaryConstraint.inheritsFrom is not a function
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels