change table storage format to allow growing and implement table.grow and table.size

This commit is contained in:
Ilya Rezvov
2022-06-06 18:27:26 -06:00
parent b2f001aea8
commit 4e9cb99e69
5 changed files with 68 additions and 17 deletions
+2 -1
View File
@@ -193,7 +193,8 @@ runScript onAssertFail script = do
getFailureString Validate.GlobalIsImmutable = ["global is immutable"]
getFailureString Validate.InvalidStartFunctionType = ["start function"]
getFailureString Validate.InvalidTableType = ["size minimum must not be greater than maximum"]
getFailureString r = [TL.concat ["not implemented ", (TL.pack $ show r)]]
getFailureString (Validate.ElemIndexOutOfRange idx) = ["unknown elem segment " <> TL.pack (show idx)]
getFailureString r = [TL.concat ["not implemented ", TL.pack $ show r]]
printFailedAssert :: String -> Assertion -> AssertM ()
printFailedAssert msg assert = do