I'll start right off saying that Bergi's solution should be preferred, but in case you don't mind killing your code's readability:
(pixels[x-left] = {})[y] = true;
This works as an assignment expression returns the assigned value (in this case, a reference to the assigned object).