Currently type reflection methods like `Global.type` should throw when they encounter types that cannot be represented, such as concrete reftypes (see https://github.com/WebAssembly/function-references/blob/main/proposals/function-references/Overview.md#type-reflection). The behavior in JSC right now is that it hits an assertion, so we need to add an explicit exception throw case for all these cases.
<rdar://problem/119436228>
Pull request: https://github.com/WebKit/WebKit/pull/24576
Committed 274900@main (dafde6a4c8f5): <https://commits.webkit.org/274900@main> Reviewed commits have been landed. Closing PR #24576 and removing active labels.