WebAssembly / WebAssembly/binaryen

`--print-function-map` performs strange escaping on symbol name

Open
#7,861 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
WebAssembly
Stars
8.6k
Forks
885
Avg merge
1d 19h
Merged PRs (30d)
69

Description

See https://github.com/emscripten-core/emscripten/issues/24982.

e.g if my function has the name Namespace::foo(Namespace::SomeClass) in the name section the emitted symbol map file will contain:

2:Namespace::foo\28Namespace::SomeClass\29

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 --print-function-map using a symbol named Namespace::foo(Namespace::SomeClass), then compare the name section with the emitted symbol map. The issue names no source file or test; done should mean symbol names in the map no longer use the reported escaping while preserving valid map formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.