Skip to content

Commit

Permalink
[NFC] Remove some dead code in wasm2js (#7201)
Browse files Browse the repository at this point in the history
This code wrote to `export_name` but it was never used. I guess we
forgot to remove it when we updated the name mangling there.
  • Loading branch information
kripken authored Jan 9, 2025
1 parent 5dc0e8c commit 3b838f7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/wasm2js.h
Original file line number Diff line number Diff line change
Expand Up @@ -2772,14 +2772,6 @@ void Wasm2JSGlue::emitPostES6() {
default:
continue;
}
std::ostringstream export_name;
for (char c : exp->name.str) {
if (c == '-') {
export_name << '_';
} else {
export_name << c;
}
}
out << "export var " << asmangle(exp->name.toString()) << " = ret"
<< moduleName << "." << asmangle(exp->name.toString()) << ";\n";
}
Expand Down

0 comments on commit 3b838f7

Please sign in to comment.