summaryrefslogtreecommitdiff
path: root/src/passes/OptimizeForJS.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-07-30 09:59:52 -0700
committerGitHub <noreply@github.com>2021-07-30 09:59:52 -0700
commit57138f8cf94f0a55b615be9802ce76f6a6858f22 (patch)
treeaecc99dcdf8679c15d3a9c20417c9a5af2fc5be7 /src/passes/OptimizeForJS.cpp
parent30ff262c916933a852805fe4acf07e5d7f34891c (diff)
downloadbinaryen-57138f8cf94f0a55b615be9802ce76f6a6858f22.tar.gz
binaryen-57138f8cf94f0a55b615be9802ce76f6a6858f22.tar.bz2
binaryen-57138f8cf94f0a55b615be9802ce76f6a6858f22.zip
Do not crash in ExtractFunction if an export already exists (#4040)
We just cleared the list of exports, but the exportMap was still populated, so the data was in an inconsistent state. This fixes the case of running --extract-function multiple times on a file (which is usually not useful, unless one of the passes you are debugging adds new functions to the file - which some do).
Diffstat (limited to 'src/passes/OptimizeForJS.cpp')
0 files changed, 0 insertions, 0 deletions