The Wasm GC proposal adds several new instructions that are constant expressions and can appear in global initializers (https://github.com/WebAssembly/gc/blob/main/proposals/gc/MVP.md#constant-expressions). The instructions are i31, struct, and array allocation, and extern.externalize/internalize. The proposal also generalizes global.get use in constant expressions. It would probably make sense to implement this along with extended const expressions: https://bugs.webkit.org/show_bug.cgi?id=252483
<rdar://problem/107680283>
Pull request: https://github.com/WebKit/WebKit/pull/17230
Committed 269484@main (2b9318e65c51): <https://commits.webkit.org/269484@main> Reviewed commits have been landed. Closing PR #17230 and removing active labels.