Me pregunto si se puede llamar a un setter a partir de un prototipo.
Considere la siguiente clase:
class someControl { constructor() { this.name = ""; } get getFunc() { return this.name } set setFunc(value) { this.name = value; } } class someControl2 { constructor() { this.name = ""; } } const a = new someControl(); const b = new someControl2(); a.setFunc = "2"; console.log(a.getFunc); ¿Hay alguna manera de aplicar/usar el setter de someControl en someControl2 sin extender la clase someControl2 ?