1 2 3 4 5 6 7 8
function makeObj() { return { x: 1, y: 2 }; } var o1 = makeObj(); var o2 = makeObj(); var snapshot = createShapeSnapshot(o1); delete o1.x; checkShapeSnapshot(snapshot, o2);