Bug 258219

Summary: [Wasm-GC] Add support for bottom heap types
Product: WebKit Reporter: bashorov
Component: WebAssemblyAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: asumu, justin_michaud, mark.lam, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=254695
Bug Depends on:    
Bug Blocks: 247394    
Attachments:
Description Flags
test none

Description bashorov 2023-06-16 12:48:24 PDT
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
Comment 1 Asumu Takikawa 2023-06-17 11:00:42 PDT
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
Comment 2 Radar WebKit Bug Importer 2023-06-23 12:49:18 PDT
<rdar://problem/111230425>