let test = ({}) test.bind({ foo: 0, bar: 1 }) .watch({ get (t, k, h) { alert(k + ' が参照されました!'); return t[k]; }, set (t, k, v, h) { alert(k + ' が ' + t[k] + ' から ' + v + ' へ変更されました。'); t[k] = v; return true; } });