summaryrefslogtreecommitdiff
path: root/src/binary-reader-objdump.cc
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-12-19 16:27:49 -0800
committerGitHub <noreply@github.com>2017-12-19 16:27:49 -0800
commitf835db8cfb418bb19dd61a10dbe49e1131b664bc (patch)
tree5dfaf9545d45e0d1787aa890e2d568bda9ee208f /src/binary-reader-objdump.cc
parent59341472102801d2ccb9d7d955af46729e6cd2ae (diff)
downloadwabt-f835db8cfb418bb19dd61a10dbe49e1131b664bc.tar.gz
wabt-f835db8cfb418bb19dd61a10dbe49e1131b664bc.tar.bz2
wabt-f835db8cfb418bb19dd61a10dbe49e1131b664bc.zip
Fix bug when writing inline exports for import (#700)
The `(import...` syntax doesn't allow for inline exports, but the wat writer assumed that all exports would be written inline, so the exports would be omitted. This CL fixes it by writing the exports normally: ``` (module (import "foo" "bar" (func)) (export "baz" (func 0)) ) ``` It is also possible to fix this by writing the imports inline, but this is not currently supported by the .wat writer: ``` (module (func (export "baz") (import "foo" "bar")) ) ```
Diffstat (limited to 'src/binary-reader-objdump.cc')
0 files changed, 0 insertions, 0 deletions