From cc3ab1ed8d68815a9b36b71864dccf2359d685aa Mon Sep 17 00:00:00 2001 From: rossberg-chromium Date: Thu, 13 Oct 2016 14:10:57 +0200 Subject: [PATCH] Test traps from start function; check JS Error classes --- ml-proto/README.md | 1 + ml-proto/host/arrange.ml | 2 ++ ml-proto/host/js.ml | 26 ++++++++++++++++++++++---- ml-proto/host/parser.mly | 2 ++ ml-proto/host/run.ml | 18 ++++++++++++++++++ ml-proto/host/script.ml | 1 + ml-proto/test/start.wast | 5 +++++ 7 files changed, 51 insertions(+), 4 deletions(-) diff --git a/ml-proto/README.md b/ml-proto/README.md index f2b3920e27..7640a4731a 100644 --- a/ml-proto/README.md +++ b/ml-proto/README.md @@ -275,6 +275,7 @@ assertion: ( assert_malformed ) ;; assert module cannot be decoded with given failure string ( assert_invalid ) ;; assert module is invalid with given failure string ( assert_unlinkable ) ;; assert module fails to link + ( assert_trap ) ;; assert module traps on instantiation meta: ( script ?