Skip to content

Commit a37fbd8

Browse files
committed
Recognise v128.const as a numeric opcode in the AST parser
1 parent 6f28752 commit a37fbd8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/wasminna/ast_parser.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,11 @@ def parse_element
615615
NUMERIC_OPCODE_REGEXP =
616616
%r{
617617
\A
618-
(?<type>[fi]) (?<bits>32|64) \. (?<operation>.+)
618+
(
619+
(?<type>[fi]) (?<bits>32|64)
620+
|
621+
(?<type>v) (?<bits>128)
622+
) \. (?<operation>.+)
619623
\z
620624
}x
621625

0 commit comments

Comments
 (0)