Skip to content

Commit 8dde029

Browse files
Add v128 value type support
1 parent e50a06f commit 8dde029

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ function parseValueType(parseState) {
250250
return "funcref";
251251
case 0x6f:
252252
return "externref";
253+
case 0x7B:
254+
return "v128";
253255
default:
254256
throw new Error(`Unknown value type ${type}`);
255257
}

test/check.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function prepare(testsuitePath) {
1616
"utf8-import-field.wast",
1717
"utf8-import-module.wast",
1818
"linking.wast",
19+
"simd_linking.wast",
1920
]
2021

2122
for (const file of files) {

0 commit comments

Comments
 (0)