diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2021-05-20 14:59:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 14:59:10 -0700 |
commit | dede877475625fa37e86400e3f4db363b76cd151 (patch) | |
tree | 4149a48881ac4b48fcc8dcae1ddd026aaea64169 /test/binaryen.js/expressions.js | |
parent | 35f9da76d53401ba4de054f4db631ce4177b32f1 (diff) | |
download | binaryen-dede877475625fa37e86400e3f4db363b76cd151.tar.gz binaryen-dede877475625fa37e86400e3f4db363b76cd151.tar.bz2 binaryen-dede877475625fa37e86400e3f4db363b76cd151.zip |
Emit imported functions first in symbol maps (#3900)
Imported functions come first when modules are emitted, so to ensure the
function indices are correct, they need to come first in the symbol maps. We
never noticed this bug before because imported functions are always the first
functions when a module is parsed, so the bug never mattered in practice.
However, wasm-split adds new imported functions after parsing and these were
causing the symbol map indices to be incorrect.
Diffstat (limited to 'test/binaryen.js/expressions.js')
0 files changed, 0 insertions, 0 deletions