Bug 265722
| Summary: | [Wasm-GC] Make type reflection throw correctly in JS API | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Asumu Takikawa <asumu> |
| Component: | WebAssembly | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 247394 | ||
Asumu Takikawa
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/119436228>
Asumu Takikawa
Pull request: https://github.com/WebKit/WebKit/pull/24576
EWS
Committed 274900@main (dafde6a4c8f5): <https://commits.webkit.org/274900@main>
Reviewed commits have been landed. Closing PR #24576 and removing active labels.