Or if ECMAscript 5 is an option checkout
object.defineProperty
allows specification of getter, setter, and writable flag (among others).
object.defineProperty
allows specification of getter, setter, and writable flag (among others).
"Unsupported features" at https://github.com/jashkenas/coffee-script/wiki/FAQ
https://github.com/jashkenas/coffee-script/issues/451