Skip to content

Commit 2558d66

Browse files
authored
[test] Fix invalid section ID tests (#1615)
1 parent 721dd6c commit 2558d66

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Node.js
2323
uses: actions/setup-node@v1
2424
with:
25-
node-version: 18.x
25+
node-version: 19.x
2626
- run: cd interpreter && opam exec make JS=node all
2727

2828
ref-interpreter-js-library:

test/core/binary.wast

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545
(assert_malformed (module binary "\00asm\00\00\00\01") "unknown binary version")
4646

4747
;; Invalid section id.
48-
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\0d\00") "malformed section id")
49-
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\7f\00") "malformed section id")
50-
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\80\00\01\00") "malformed section id")
51-
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\81\00\01\00") "malformed section id")
52-
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\ff\00\01\00") "malformed section id")
48+
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\0e\01\00") "malformed section id")
49+
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\7f\01\00") "malformed section id")
50+
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\80\01\00\01\01\00") "malformed section id")
51+
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\81\01\00\01\01\00") "malformed section id")
52+
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\ff\01\00\01\01\00") "malformed section id")
5353

5454
;; Unsigned LEB128 can have non-minimal length
5555
(module binary

0 commit comments

Comments
 (0)