Bug 1451257 [wpt PR 10303] - Simplify assert_throws in two places where error message...