Preheat oven to 180 degrees. Coat a 17-by-12-inch rimmed baking sheet with cooking spray.
Line bottom with parchment cut to fit, and coat parchment.
Whisk together flour, baking soda, salt, and spices.
Beat butter and brown and granulated sugars with a mixer on medium-high speed until pale and fluffy.
Add eggs and yolk, 1 at a time, beating well after each addition and scraping down sides of bowl as needed.
Beat in vanilla and black treacle.
Reduce speed to low.
Gradually add flour mixture, and beat until just combined.
Stir in chocolate.
Spread batter into prepared pan.
Bake until edges are golden, about 25 minutes.
Let cool completely in pan on a wire rack.
Cut into squares.