diff options
author | Ben Smith <binjimin@gmail.com> | 2018-01-21 21:59:43 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-21 21:59:43 -0800 |
commit | 8bcd84f39737a8f26da1dec33a80da7c7ee4e390 (patch) | |
tree | c0079aa79dd4dd4579b6412efe5c1c25b296cdbd /src/binary-reader-interp.cc | |
parent | 6ce14be1c40144dfe109e2bb4dd6e8bf2a459da5 (diff) | |
download | wabt-8bcd84f39737a8f26da1dec33a80da7c7ee4e390.tar.gz wabt-8bcd84f39737a8f26da1dec33a80da7c7ee4e390.tar.bz2 wabt-8bcd84f39737a8f26da1dec33a80da7c7ee4e390.zip |
Remove `run-interp.py`; use `RUN` commands instead (#730)
Many of the `test/run-*` Python scripts are essentially the python
equivalent of shell scripts. They require tedious maintenance whenever
the tools change, and have a significant amount of copied code. This CL
removes `run-interp.py` as a relatively simple initial example.
Diffstat (limited to 'src/binary-reader-interp.cc')
-rw-r--r-- | src/binary-reader-interp.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/binary-reader-interp.cc b/src/binary-reader-interp.cc index d053b325..10180e2a 100644 --- a/src/binary-reader-interp.cc +++ b/src/binary-reader-interp.cc @@ -624,7 +624,9 @@ wabt::Result BinaryReaderInterp::AppendExport(Module* module, ExternalKind kind, Index item_index, string_view name) { - if (module->export_bindings.FindIndex(name) != kInvalidIndex) { + // Host modules are allowed to have duplicated exports; e.g. "spectest.print" + if (isa<DefinedModule>(module) && + module->export_bindings.FindIndex(name) != kInvalidIndex) { PrintError("duplicate export \"" PRIstringview "\"", WABT_PRINTF_STRING_VIEW_ARG(name)); return wabt::Result::Error; |