Created attachment 466719 [details] test Steps to reproduce: 1. Unpack the attached file. 2. Run `jsc --useWebAssemblyTypedFunctionReferences=true --useWebAssemblyGC=true --module-file=test.mjs` Actual results: Exception: CompileError: WebAssembly.Module doesn't parse at byte 3: ref.null heaptype must be funcref, externref or type_idx, in function at index 0 (evaluating 'new WebAssembly.Module(wasmBuffer)') Module@[native code] Expected results: No errors -- Related tests in the GC proposal repo: https://github.com/WebAssembly/gc/blob/main/test/core/gc/ref_cast.wast https://github.com/WebAssembly/gc/blob/main/test/core/gc/ref_test.wast
Thanks for this bug report, I think it might be a duplicate of this existing one though: https://bugs.webkit.org/show_bug.cgi?id=254695
<rdar://problem/111230425>