`--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.

Assessment

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

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.

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
Dominant language
WebAssembly
Stars
8.6k
Forks
885
Avg merge
1d 20h
Merged PRs (30d)
64

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.

More from WebAssembly/binaryen

All issues in WebAssembly/binaryen

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.