summaryrefslogtreecommitdiff
path: root/src/binary-reader-ir.cc
diff options
context:
space:
mode:
authorKarlSchimpf <karlschimpf@gmail.com>2017-06-13 14:25:11 -0700
committerGitHub <noreply@github.com>2017-06-13 14:25:11 -0700
commit4e5f32c19ed1b1756446231e9622e903137b0e27 (patch)
tree245d0c850db7b3976fc4702c1276a4175329127f /src/binary-reader-ir.cc
parent194fbedf2065cc2ac09a4ead997256a8a8f8894a (diff)
downloadwabt-4e5f32c19ed1b1756446231e9622e903137b0e27.tar.gz
wabt-4e5f32c19ed1b1756446231e9622e903137b0e27.tar.bz2
wabt-4e5f32c19ed1b1756446231e9622e903137b0e27.zip
Add exception declarations and examples. (#494)
* Save state. * Add exception declaration syntax. * Extend validator to handle exception declarations. * Fix binary writer to handle exception declarations. * Fix code to handle external exception kind. * Regenerate lexer. * Fix bug with last merge. * Add exception declarations, and add examples. * Fix nits. * Fix issues raised by binji and sbc100. * Make "wast" and "wat" versions of try block the same internally. * Fix s-exp form of try block. * Fix nits in grammer for a try block.
Diffstat (limited to 'src/binary-reader-ir.cc')
-rw-r--r--src/binary-reader-ir.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/binary-reader-ir.cc b/src/binary-reader-ir.cc
index 029cb3fc..5e58e7d6 100644
--- a/src/binary-reader-ir.cc
+++ b/src/binary-reader-ir.cc
@@ -481,6 +481,9 @@ Result BinaryReaderIR::OnExport(Index index,
case ExternalKind::Global:
assert(item_index < module->globals.size());
break;
+ case ExternalKind::Except:
+ WABT_FATAL("OnExport(except) not implemented\n");
+ break;
}
export_->var.type = VarType::Index;
export_->var.index = item_index;