WebAssembly / WebAssembly/wabt

In the case of wasmGC, the encoding of the ref is incorrect. such as test/dump/typed_func_refds_params

Open
#2,364 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
8.1k
Forks
827
Avg merge
4d 6h
Merged PRs (30d)
18

Description

In the test/dump/typed_func_refds_params ,

1704683085823
image

ref----0x6b,but in the wasmGC standard,ref----0x64.
if translate ref to 0x6b, the chrome will report an error.

image

This problem appears in the following two files.
image

Hope to solve this problem, otherwise pr can not go through.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with test/dump/typed_func_refds_params and inspect the two files shown in the issue attachments. Compare the emitted ref encoding with the WebAssembly GC standard and verify the corrected output is accepted by Chrome; add or update coverage for this test case.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, wasm
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.