drop flag for elems was added. initial table.init implementation

This commit is contained in:
Ilya Rezvov
2022-05-31 19:39:06 -06:00
parent cbeb4bb61d
commit e9140ae70c
2 changed files with 35 additions and 19 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ runScript onAssertFail script = do
st <- fst <$> State.get
(res, store') <- liftIO $ Interpreter.instantiate (store st) (buildImports st) m
case res of
Left failureString -> return ()
Left err | err == TL.unpack failureString -> return ()
Left "Start function terminated with trap" ->
State.modify $ \(st, pos) -> (st { store = store' }, pos)
r -> printFailedAssert "Module linking should fail with trap during execution of a start function" assert