Preheat the oven to 350℉/180℃. Grease a 9" heart shaped cake pan.
In a large bowl/the bowl of a stand mixer (with the paddle attachment), add the butter and sugar and beat together until pale and fluffy (about 3 minutes). Add the egg and egg yolk (separate in a different bowl, just in case it breaks) and mix again until fully combined.
In another bowl, combine the flour, cornstarch and baking soda. Add to the cookie dough and beat to combine. Finally, add the chocolate chips and mix.
Press this cookie dough into the prepared pan and add the M&Ms on top, pressing in gently. You may find it easier to press the cookie dough into the pan using your hands.
Bake 23-26 minutes, until just golden. Remove and let cool fully.