diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wat-writer.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wat-writer.cc b/src/wat-writer.cc index 184438fb..2fd2bbc5 100644 --- a/src/wat-writer.cc +++ b/src/wat-writer.cc @@ -1027,8 +1027,10 @@ void WatWriter::WriteGlobal(const Global* global) { void WatWriter::WriteBeginException(const Exception* except) { WriteOpenSpace("except"); - WriteNameOrIndex(&except->name, except_index_++, NextChar::Space); + WriteNameOrIndex(&except->name, except_index_, NextChar::Space); + WriteInlineExports(ExternalKind::Except, except_index_); WriteTypes(except->sig, nullptr); + ++except_index_; } void WatWriter::WriteException(const Exception* except) { @@ -1212,7 +1214,7 @@ void WatWriter::BuildExportMap() { break; case ExternalKind::Except: - // TODO(karlschimpf): Build for inline exceptions. + index = module_->GetExceptIndex(export_->var); break; } |