[Webkit-unassigned] [Bug 240982] New: [Wasm-GC] Change externref to anyref

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 26 14:58:56 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=240982

            Bug ID: 240982
           Summary: [Wasm-GC] Change externref to anyref
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebAssembly
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: asumu at igalia.com

The Wasm GC proposal unifies the externref type and anyref type (https://github.com/WebAssembly/gc/pull/271).

Right now, externref allows host values and has no subtyping relationship with other types. With the change to anyref, an anyref will allow host types, but it will also be allowed to be downcast to more specific reference types once casting operations are added. An anyref type parameter, e.g. for a function, will accept other reference types in the hierarchy as well.

(It is possible funcrefs will be excluded from the anyref hierarchy https://github.com/WebAssembly/gc/issues/293)

When Wasm GC is disabled, externref should still function as it does right now.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220526/1e05d6d7/attachment.htm>


More information about the webkit-unassigned mailing list