all tests are green

This commit is contained in:
Ilya Rezvov
2023-08-26 21:44:36 -06:00
parent d112b28233
commit 7810040226
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -877,10 +877,10 @@ instance Serialize ElemSegment where
putVec $ map Expr elements
get = do
op <- getWord8
let funcIndexes = map ((:[]) . RefFunc . unIndex) <$> getVec
let elemKind = byteGuard 0x00 >> return FuncRef
case op of
op <- getULEB128 32
case (op :: Word8) of
0x00 -> do
offset <- getExpression
ElemSegment FuncRef (Active 0 offset) <$> funcIndexes