Bug 258219 - [Wasm-GC] Add support for bottom heap types
Summary: [Wasm-GC] Add support for bottom heap types
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebAssembly (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 247394
  Show dependency treegraph
 
Reported: 2023-06-16 12:48 PDT by bashorov
Modified: 2023-06-23 12:49 PDT (History)
5 users (show)

See Also:


Attachments
test (2.34 KB, application/zip)
2023-06-16 12:48 PDT, bashorov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>