My problem was that I needed to create an alias. It turns out, this is pretty easy to do an object with Object.defineProperty(). I simply give it an object, the name of the getter/setter, and the appropriate functions.

What if we wanted all instances of MyClass to share this alias? That takes just one small trick: instead of using instance, simply use MyClass.prototype. Applying the new property to the prototype means that all instances of that class will be created with the new getter and setter.