diff options
author | Ben Smith <binjimin@gmail.com> | 2017-01-26 13:17:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-26 13:17:37 -0800 |
commit | 3556e8f9fb1f4dff4bd506fa4c2b764ac4e6aea0 (patch) | |
tree | bc89d4c5c5bb5c3f63dcbde14df80c95139d30e7 /src/binary-reader-objdump.c | |
parent | 27e054f1fe4db13e02eaef649bb4bfe71b0efc68 (diff) | |
download | wabt-3556e8f9fb1f4dff4bd506fa4c2b764ac4e6aea0.tar.gz wabt-3556e8f9fb1f4dff4bd506fa4c2b764ac4e6aea0.tar.bz2 wabt-3556e8f9fb1f4dff4bd506fa4c2b764ac4e6aea0.zip |
Resolve names in assert_invalid modules (#293)
Names should be resolved in assert_invalid modules, even when running
wast2wasm with --no-check-assert-invalid-and-malformed.
* Add wasm_find_duplicate_bindings; this is a generic version of
check_duplicate_bindings, which was in resolve-names.c. The reason is
that in general, duplicated bindings will prevent name resolution, but
duplicated exports won't. So checking for duplicated exports belongs
in validator.c, not resolve-names.c.
* Add a new command type: ASSERT_INVALID_NON_BINARY. This is set if name
resolution cannot succeed, because that is the only case where a binary
module cannot be generated.
* When writing spec modules, always write the binary format to a memory
buffer even if the user specifies no output file. This way we can test
module writing errors more easily.
This fixes issue #292.
Diffstat (limited to 'src/binary-reader-objdump.c')
0 files changed, 0 insertions, 0 deletions