Refactor assertion code
<rdar://problem/116884036>
Pull request: https://github.com/WebKit/WebKit/pull/19304
Committed 269791@main (09ce8066c4df): <https://commits.webkit.org/269791@main> Reviewed commits have been landed. Closing PR #19304 and removing active labels.