Domanda di colloquio di Lab49

How would you build a spy for a javascript object?