Skip to content

Debuginfo assumes names from Wasm's name section are unique #1343

Closed as duplicate

Description

@mooori

Context: #1341

for (func_index, _) in module.functions.iter() {
let name = module.func_name(func_index).as_str().to_owned();
func_by_name.insert(name, func_index);
}

For a wasm section like below, the second insertion silently replaces the first.

FuncIndex(0) → "foo"
FuncIndex(1) → "foo"

This might change if #1342 lands more or less in its original form.

cc @djolertrk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    debuggingFunctionality or bugs related to debug info consumed/emitted by the compiler

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions