function foo(a, b, c) { // Construct and freeze x, y const x = makeObject(a); const y = makeObject(a);
{x} {y}
; // z should depend on `x`, `y.method`, and `b` const z = x[y.method](b); return z; }