diff options
author | Ben Smith <binjimin@gmail.com> | 2017-12-19 16:27:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-19 16:27:49 -0800 |
commit | f835db8cfb418bb19dd61a10dbe49e1131b664bc (patch) | |
tree | 5dfaf9545d45e0d1787aa890e2d568bda9ee208f /src/binary-reader-objdump.cc | |
parent | 59341472102801d2ccb9d7d955af46729e6cd2ae (diff) | |
download | wabt-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