var o = { get foo() { return 1; }, set bar(value) { // do things with value } };