Question d’entretien chez Lab49

How would you build a spy for a javascript object?