summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/binary.h2
-rw-r--r--test/binary/bad-version.txt2
-rw-r--r--test/binary/user-section.txt2
-rw-r--r--test/dump/basic.txt4
-rw-r--r--test/dump/basic_dump_only.txt2
-rw-r--r--test/dump/binary.txt4
-rw-r--r--test/dump/block-257-exprs-br.txt4
-rw-r--r--test/dump/block-257-exprs.txt4
-rw-r--r--test/dump/block.txt4
-rw-r--r--test/dump/br-block-named.txt4
-rw-r--r--test/dump/br-block.txt4
-rw-r--r--test/dump/br-loop-inner-expr.txt4
-rw-r--r--test/dump/br-loop-inner.txt4
-rw-r--r--test/dump/br-loop.txt4
-rw-r--r--test/dump/brif-loop.txt4
-rw-r--r--test/dump/brif.txt4
-rw-r--r--test/dump/brtable-empty.txt4
-rw-r--r--test/dump/brtable.txt4
-rw-r--r--test/dump/call.txt4
-rw-r--r--test/dump/callimport.txt4
-rw-r--r--test/dump/callindirect.txt4
-rw-r--r--test/dump/cast.txt4
-rw-r--r--test/dump/compare.txt4
-rw-r--r--test/dump/const.txt4
-rw-r--r--test/dump/convert.txt4
-rw-r--r--test/dump/current-memory.txt4
-rw-r--r--test/dump/debug-import-names.txt4
-rw-r--r--test/dump/debug-names.txt4
-rw-r--r--test/dump/dedupe-sig.txt4
-rw-r--r--test/dump/drop.txt4
-rw-r--r--test/dump/export-multi.txt4
-rw-r--r--test/dump/expr-br.txt4
-rw-r--r--test/dump/expr-brif.txt4
-rw-r--r--test/dump/func-exported.txt4
-rw-r--r--test/dump/func-multi.txt4
-rw-r--r--test/dump/func-named.txt4
-rw-r--r--test/dump/getglobal.txt4
-rw-r--r--test/dump/getlocal-param.txt4
-rw-r--r--test/dump/getlocal.txt4
-rw-r--r--test/dump/global.txt4
-rw-r--r--test/dump/grow-memory.txt4
-rw-r--r--test/dump/hexfloat_f32.txt4
-rw-r--r--test/dump/hexfloat_f64.txt4
-rw-r--r--test/dump/if-then-else-list.txt4
-rw-r--r--test/dump/if-then-list.txt4
-rw-r--r--test/dump/if.txt4
-rw-r--r--test/dump/import.txt4
-rw-r--r--test/dump/invalid-data-segment-no-memory.txt2
-rw-r--r--test/dump/invalid-data-segment-offset.txt2
-rw-r--r--test/dump/invalid-elem-segment-no-table.txt2
-rw-r--r--test/dump/invalid-elem-segment-offset.txt2
-rw-r--r--test/dump/load-aligned.txt4
-rw-r--r--test/dump/load.txt4
-rw-r--r--test/dump/locals.txt4
-rw-r--r--test/dump/loop-257-exprs-br.txt4
-rw-r--r--test/dump/loop-257-exprs.txt4
-rw-r--r--test/dump/loop.txt4
-rw-r--r--test/dump/memory-1-byte.txt4
-rw-r--r--test/dump/memory-data-size.txt16
-rw-r--r--test/dump/memory-hex.txt4
-rw-r--r--test/dump/memory.txt4
-rw-r--r--test/dump/no-canonicalize.txt4
-rw-r--r--test/dump/nocheck.txt4
-rw-r--r--test/dump/nop.txt4
-rw-r--r--test/dump/param-multi.txt4
-rw-r--r--test/dump/result.txt4
-rw-r--r--test/dump/return.txt4
-rw-r--r--test/dump/select.txt4
-rw-r--r--test/dump/setglobal.txt4
-rw-r--r--test/dump/setlocal-param.txt4
-rw-r--r--test/dump/setlocal.txt4
-rw-r--r--test/dump/signatures.txt4
-rw-r--r--test/dump/store-aligned.txt4
-rw-r--r--test/dump/store.txt4
-rw-r--r--test/dump/string-escape.txt4
-rw-r--r--test/dump/string-hex.txt4
-rw-r--r--test/dump/table.txt4
-rw-r--r--test/dump/tee_local.txt4
-rw-r--r--test/dump/unary.txt4
-rw-r--r--test/dump/unreachable.txt4
-rw-r--r--test/gen-spec-js/action.txt2
-rw-r--r--test/gen-spec-js/assert_return.txt2
-rw-r--r--test/gen-spec-js/assert_return_nan.txt2
-rw-r--r--test/gen-spec-js/assert_trap.txt2
-rw-r--r--test/gen-spec-js/assert_uninstantiable.txt2
-rw-r--r--test/gen-spec-js/assert_unlinkable.txt2
-rw-r--r--test/gen-spec-js/basic.txt2
-rw-r--r--test/gen-spec-js/many-modules.txt6
-rw-r--r--test/gen-spec-js/register.txt4
-rwxr-xr-xtest/gen-wasm.py2
-rw-r--r--test/link/data.txt2
-rw-r--r--test/link/export.txt2
-rw-r--r--test/link/function_calls.txt2
-rw-r--r--test/link/function_calls_incremental.txt2
-rw-r--r--test/link/globals.txt2
-rw-r--r--test/link/incremental.txt2
-rw-r--r--test/link/interp.txt2
-rw-r--r--test/link/names.txt2
-rw-r--r--test/link/table.txt2
-rw-r--r--test/parse/module/binary-module.txt2
-rw-r--r--test/spec/binary.txt8
m---------third_party/testsuite0
102 files changed, 186 insertions, 184 deletions
diff --git a/src/binary.h b/src/binary.h
index 52fb9002..4dc91de7 100644
--- a/src/binary.h
+++ b/src/binary.h
@@ -20,7 +20,7 @@
#include "common.h"
#define WABT_BINARY_MAGIC 0x6d736100
-#define WABT_BINARY_VERSION 0x0d
+#define WABT_BINARY_VERSION 1
#define WABT_BINARY_LIMITS_HAS_MAX_FLAG 0x1
#define WABT_BINARY_SECTION_NAME "name"
diff --git a/test/binary/bad-version.txt b/test/binary/bad-version.txt
index 28ddd143..fe8cc216 100644
--- a/test/binary/bad-version.txt
+++ b/test/binary/bad-version.txt
@@ -4,6 +4,6 @@ magic
0xe 0 0 0
(;; STDERR ;;;
Error running "wasm2wast":
-error: @0x00000008: bad wasm file version: 0xe (expected 0xd)
+error: @0x00000008: bad wasm file version: 0xe (expected 0x1)
;;; STDERR ;;)
diff --git a/test/binary/user-section.txt b/test/binary/user-section.txt
index e8351d2f..285c4367 100644
--- a/test/binary/user-section.txt
+++ b/test/binary/user-section.txt
@@ -7,7 +7,7 @@ section(TYPE) { count[1] function params[0] results[1] i32 }
section("bar") { count[5] }
section("foo") { count[6] }
(;; STDOUT ;;;
-begin_module(13)
+begin_module(1)
begin_custom_section: 'foo' size=5
end_custom_section
begin_signature_section
diff --git a/test/dump/basic.txt b/test/dump/basic.txt
index 4ce54a4d..0b5274b8 100644
--- a/test/dump/basic.txt
+++ b/test/dump/basic.txt
@@ -15,7 +15,7 @@
(export "f" (func $f)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -79,7 +79,7 @@
0000038: 0b ; end
0000024: 14 ; FIXUP func body size
0000022: 16 ; FIXUP section size
-basic.wasm: file format wasm 0x00000d
+basic.wasm: file format wasm 0x000001
Sections:
diff --git a/test/dump/basic_dump_only.txt b/test/dump/basic_dump_only.txt
index 7cf93f84..d366550d 100644
--- a/test/dump/basic_dump_only.txt
+++ b/test/dump/basic_dump_only.txt
@@ -13,7 +13,7 @@
i32.add)
(export "f" (func $f)))
(;; STDOUT ;;;
-basic_dump_only.wasm: file format wasm 0x00000d
+basic_dump_only.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/binary.txt b/test/dump/binary.txt
index c5b5e749..439d8108 100644
--- a/test/dump/binary.txt
+++ b/test/dump/binary.txt
@@ -103,7 +103,7 @@
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -275,7 +275,7 @@
0000015: e201 ; FIXUP func body size
; move data: [14, f9) -> [15, fa)
0000013: e501 ; FIXUP section size
-binary.wasm: file format wasm 0x00000d
+binary.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/block-257-exprs-br.txt b/test/dump/block-257-exprs-br.txt
index da433c6e..8d598263 100644
--- a/test/dump/block-257-exprs-br.txt
+++ b/test/dump/block-257-exprs-br.txt
@@ -49,7 +49,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -340,7 +340,7 @@
0000015: 8902 ; FIXUP func body size
; move data: [14, 120) -> [15, 121)
0000013: 8c02 ; FIXUP section size
-block-257-exprs-br.wasm: file format wasm 0x00000d
+block-257-exprs-br.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/block-257-exprs.txt b/test/dump/block-257-exprs.txt
index ae7d0a1d..9f349bb5 100644
--- a/test/dump/block-257-exprs.txt
+++ b/test/dump/block-257-exprs.txt
@@ -48,7 +48,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -336,7 +336,7 @@
0000015: 8602 ; FIXUP func body size
; move data: [14, 11d) -> [15, 11e)
0000013: 8902 ; FIXUP section size
-block-257-exprs.wasm: file format wasm 0x00000d
+block-257-exprs.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/block.txt b/test/dump/block.txt
index 261269fc..119c346f 100644
--- a/test/dump/block.txt
+++ b/test/dump/block.txt
@@ -14,7 +14,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -62,7 +62,7 @@
000002a: 0b ; end
0000023: 07 ; FIXUP func body size
0000018: 12 ; FIXUP section size
-block.wasm: file format wasm 0x00000d
+block.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/br-block-named.txt b/test/dump/br-block-named.txt
index 3ef479cd..6ae9e9bb 100644
--- a/test/dump/br-block-named.txt
+++ b/test/dump/br-block-named.txt
@@ -16,7 +16,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -61,7 +61,7 @@
000002a: 0b ; end
0000015: 15 ; FIXUP func body size
0000013: 17 ; FIXUP section size
-br-block-named.wasm: file format wasm 0x00000d
+br-block-named.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/br-block.txt b/test/dump/br-block.txt
index abf6fee7..af6c6100 100644
--- a/test/dump/br-block.txt
+++ b/test/dump/br-block.txt
@@ -18,7 +18,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -67,7 +67,7 @@
000002e: 0b ; end
0000015: 19 ; FIXUP func body size
0000013: 1b ; FIXUP section size
-br-block.wasm: file format wasm 0x00000d
+br-block.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/br-loop-inner-expr.txt b/test/dump/br-loop-inner-expr.txt
index 414acde4..e8379b4d 100644
--- a/test/dump/br-loop-inner-expr.txt
+++ b/test/dump/br-loop-inner-expr.txt
@@ -18,7 +18,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -69,7 +69,7 @@
0000030: 0b ; end
0000016: 1a ; FIXUP func body size
0000014: 1c ; FIXUP section size
-br-loop-inner-expr.wasm: file format wasm 0x00000d
+br-loop-inner-expr.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/br-loop-inner.txt b/test/dump/br-loop-inner.txt
index 95b42ed0..8957d7df 100644
--- a/test/dump/br-loop-inner.txt
+++ b/test/dump/br-loop-inner.txt
@@ -9,7 +9,7 @@
(br $cont))))))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -55,7 +55,7 @@
000002b: 0b ; end
0000015: 16 ; FIXUP func body size
0000013: 18 ; FIXUP section size
-br-loop-inner.wasm: file format wasm 0x00000d
+br-loop-inner.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/br-loop.txt b/test/dump/br-loop.txt
index 0891b0e0..ba754ea8 100644
--- a/test/dump/br-loop.txt
+++ b/test/dump/br-loop.txt
@@ -10,7 +10,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -46,7 +46,7 @@
0000021: 0b ; end
0000015: 0c ; FIXUP func body size
0000013: 0e ; FIXUP section size
-br-loop.wasm: file format wasm 0x00000d
+br-loop.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/brif-loop.txt b/test/dump/brif-loop.txt
index 7b5a238b..ded37aef 100644
--- a/test/dump/brif-loop.txt
+++ b/test/dump/brif-loop.txt
@@ -8,7 +8,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -41,7 +41,7 @@
000001e: 0b ; end
0000015: 09 ; FIXUP func body size
0000013: 0b ; FIXUP section size
-brif-loop.wasm: file format wasm 0x00000d
+brif-loop.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/brif.txt b/test/dump/brif.txt
index 9db44a0d..eb2c8fef 100644
--- a/test/dump/brif.txt
+++ b/test/dump/brif.txt
@@ -8,7 +8,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -41,7 +41,7 @@
000001e: 0b ; end
0000015: 09 ; FIXUP func body size
0000013: 0b ; FIXUP section size
-brif.wasm: file format wasm 0x00000d
+brif.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/brtable-empty.txt b/test/dump/brtable-empty.txt
index 60a80fc4..479ea447 100644
--- a/test/dump/brtable-empty.txt
+++ b/test/dump/brtable-empty.txt
@@ -8,7 +8,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -42,7 +42,7 @@
000001f: 0b ; end
0000015: 0a ; FIXUP func body size
0000013: 0c ; FIXUP section size
-brtable-empty.wasm: file format wasm 0x00000d
+brtable-empty.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/brtable.txt b/test/dump/brtable.txt
index 30dc547b..f96a402b 100644
--- a/test/dump/brtable.txt
+++ b/test/dump/brtable.txt
@@ -22,7 +22,7 @@
drop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -75,7 +75,7 @@
0000032: 0b ; end
0000015: 1d ; FIXUP func body size
0000013: 1f ; FIXUP section size
-brtable.wasm: file format wasm 0x00000d
+brtable.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/call.txt b/test/dump/call.txt
index 89f14cc6..ec7fce8c 100644
--- a/test/dump/call.txt
+++ b/test/dump/call.txt
@@ -6,7 +6,7 @@
call 0))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -37,7 +37,7 @@
000001c: 0b ; end
0000016: 06 ; FIXUP func body size
0000014: 08 ; FIXUP section size
-call.wasm: file format wasm 0x00000d
+call.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/callimport.txt b/test/dump/callimport.txt
index 225d3d84..a22eeb42 100644
--- a/test/dump/callimport.txt
+++ b/test/dump/callimport.txt
@@ -12,7 +12,7 @@
call 1))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -67,7 +67,7 @@
0000037: 0b ; end
0000029: 0e ; FIXUP func body size
0000027: 10 ; FIXUP section size
-callimport.wasm: file format wasm 0x00000d
+callimport.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/callindirect.txt b/test/dump/callindirect.txt
index 30d3bfc0..2652f9b7 100644
--- a/test/dump/callindirect.txt
+++ b/test/dump/callindirect.txt
@@ -9,7 +9,7 @@
(table anyfunc (elem $f)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -65,7 +65,7 @@
000002f: 0b ; end
0000026: 09 ; FIXUP func body size
0000024: 0b ; FIXUP section size
-callindirect.wasm: file format wasm 0x00000d
+callindirect.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/cast.txt b/test/dump/cast.txt
index f8cb863b..6b8ea4a9 100644
--- a/test/dump/cast.txt
+++ b/test/dump/cast.txt
@@ -16,7 +16,7 @@
drop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -58,7 +58,7 @@
0000031: 0b ; end
0000015: 1c ; FIXUP func body size
0000013: 1e ; FIXUP section size
-cast.wasm: file format wasm 0x00000d
+cast.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/compare.txt b/test/dump/compare.txt
index 429642c1..16758ef1 100644
--- a/test/dump/compare.txt
+++ b/test/dump/compare.txt
@@ -117,7 +117,7 @@
drop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -310,7 +310,7 @@
0000015: 9f02 ; FIXUP func body size
; move data: [14, 136) -> [15, 137)
0000013: a202 ; FIXUP section size
-compare.wasm: file format wasm 0x00000d
+compare.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/const.txt b/test/dump/const.txt
index 6dfe40a8..94b05b5c 100644
--- a/test/dump/const.txt
+++ b/test/dump/const.txt
@@ -80,7 +80,7 @@
drop ))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -222,7 +222,7 @@
0000015: 9a02 ; FIXUP func body size
; move data: [14, 131) -> [15, 132)
0000013: 9d02 ; FIXUP section size
-const.wasm: file format wasm 0x00000d
+const.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/convert.txt b/test/dump/convert.txt
index d6fee9d6..4c6dcf6f 100644
--- a/test/dump/convert.txt
+++ b/test/dump/convert.txt
@@ -33,7 +33,7 @@
drop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -89,7 +89,7 @@
0000038: 0b ; end
0000015: 23 ; FIXUP func body size
0000013: 25 ; FIXUP section size
-convert.wasm: file format wasm 0x00000d
+convert.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/current-memory.txt b/test/dump/current-memory.txt
index 56d7f089..78646386 100644
--- a/test/dump/current-memory.txt
+++ b/test/dump/current-memory.txt
@@ -6,7 +6,7 @@
current_memory))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -43,7 +43,7 @@
000001f: 0b ; end
000001b: 04 ; FIXUP func body size
0000019: 06 ; FIXUP section size
-current-memory.wasm: file format wasm 0x00000d
+current-memory.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/debug-import-names.txt b/test/dump/debug-import-names.txt
index 0081e75a..3428d0fd 100644
--- a/test/dump/debug-import-names.txt
+++ b/test/dump/debug-import-names.txt
@@ -4,7 +4,7 @@
(import "bar" "foo" (func $foo)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -36,7 +36,7 @@
0000024: 2466 6f6f $foo ; func name 0
0000028: 00 ; num locals
000001c: 0c ; FIXUP section size
-debug-import-names.wasm: file format wasm 0x00000d
+debug-import-names.wasm: file format wasm 0x000001
Sections:
diff --git a/test/dump/debug-names.txt b/test/dump/debug-names.txt
index eba6f859..5703fdc0 100644
--- a/test/dump/debug-names.txt
+++ b/test/dump/debug-names.txt
@@ -12,7 +12,7 @@
(local $F2L3 i64)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -85,7 +85,7 @@
000005b: 05 ; string length
000005c: 2446 324c 33 $F2L3 ; local name 3
000002a: 36 ; FIXUP section size
-debug-names.wasm: file format wasm 0x00000d
+debug-names.wasm: file format wasm 0x000001
Section Details:
diff --git a/test/dump/dedupe-sig.txt b/test/dump/dedupe-sig.txt
index 99fc905a..39c9f37f 100644
--- a/test/dump/dedupe-sig.txt
+++ b/test/dump/dedupe-sig.txt
@@ -7,7 +7,7 @@
i64.const 0))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -49,7 +49,7 @@
0000028: 0b ; end
0000024: 04 ; FIXUP func body size
0000022: 06 ; FIXUP section size
-dedupe-sig.wasm: file format wasm 0x00000d
+dedupe-sig.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/drop.txt b/test/dump/drop.txt
index dbb88703..68c94947 100644
--- a/test/dump/drop.txt
+++ b/test/dump/drop.txt
@@ -6,7 +6,7 @@
drop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -35,7 +35,7 @@
000001a: 0b ; end
0000015: 05 ; FIXUP func body size
0000013: 07 ; FIXUP section size
-drop.wasm: file format wasm 0x00000d
+drop.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/export-multi.txt b/test/dump/export-multi.txt
index 4878eb9b..35fccb10 100644
--- a/test/dump/export-multi.txt
+++ b/test/dump/export-multi.txt
@@ -6,7 +6,7 @@
(export "b" (func 0)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -46,7 +46,7 @@
0000023: 0b ; end
0000020: 03 ; FIXUP func body size
000001e: 05 ; FIXUP section size
-export-multi.wasm: file format wasm 0x00000d
+export-multi.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/expr-br.txt b/test/dump/expr-br.txt
index 1f3ce7ce..48e5d82f 100644
--- a/test/dump/expr-br.txt
+++ b/test/dump/expr-br.txt
@@ -9,7 +9,7 @@
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -43,7 +43,7 @@
000001f: 0b ; end
0000016: 09 ; FIXUP func body size
0000014: 0b ; FIXUP section size
-expr-br.wasm: file format wasm 0x00000d
+expr-br.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/expr-brif.txt b/test/dump/expr-brif.txt
index 9e2088a9..ea40528a 100644
--- a/test/dump/expr-brif.txt
+++ b/test/dump/expr-brif.txt
@@ -11,7 +11,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -50,7 +50,7 @@
0000024: 0b ; end
0000016: 0e ; FIXUP func body size
0000014: 10 ; FIXUP section size
-expr-brif.wasm: file format wasm 0x00000d
+expr-brif.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/func-exported.txt b/test/dump/func-exported.txt
index ee0a93b0..e7c08f79 100644
--- a/test/dump/func-exported.txt
+++ b/test/dump/func-exported.txt
@@ -5,7 +5,7 @@
(export "foo" (func 0)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -40,7 +40,7 @@
0000020: 0b ; end
000001e: 02 ; FIXUP func body size
000001c: 04 ; FIXUP section size
-func-exported.wasm: file format wasm 0x00000d
+func-exported.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/func-multi.txt b/test/dump/func-multi.txt
index 0cb49e6e..9698ffb4 100644
--- a/test/dump/func-multi.txt
+++ b/test/dump/func-multi.txt
@@ -6,7 +6,7 @@
(func))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -44,7 +44,7 @@
000001f: 0b ; end
000001d: 02 ; FIXUP func body size
0000015: 0a ; FIXUP section size
-func-multi.wasm: file format wasm 0x00000d
+func-multi.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/func-named.txt b/test/dump/func-named.txt
index 5a67a37b..9880abb8 100644
--- a/test/dump/func-named.txt
+++ b/test/dump/func-named.txt
@@ -4,7 +4,7 @@
(func $my-func))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -30,7 +30,7 @@
0000017: 0b ; end
0000015: 02 ; FIXUP func body size
0000013: 04 ; FIXUP section size
-func-named.wasm: file format wasm 0x00000d
+func-named.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/getglobal.txt b/test/dump/getglobal.txt
index 7494e048..7135494d 100644
--- a/test/dump/getglobal.txt
+++ b/test/dump/getglobal.txt
@@ -6,7 +6,7 @@
get_global 0))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -45,7 +45,7 @@
0000022: 0b ; end
000001e: 04 ; FIXUP func body size
000001c: 06 ; FIXUP section size
-getglobal.wasm: file format wasm 0x00000d
+getglobal.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/getlocal-param.txt b/test/dump/getlocal-param.txt
index 60984cd0..8f94aa65 100644
--- a/test/dump/getlocal-param.txt
+++ b/test/dump/getlocal-param.txt
@@ -17,7 +17,7 @@
drop ))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -71,7 +71,7 @@
0000033: 0b ; end
0000017: 1c ; FIXUP func body size
0000015: 1e ; FIXUP section size
-getlocal-param.wasm: file format wasm 0x00000d
+getlocal-param.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/getlocal.txt b/test/dump/getlocal.txt
index cf01f231..4eedfe51 100644
--- a/test/dump/getlocal.txt
+++ b/test/dump/getlocal.txt
@@ -21,7 +21,7 @@
drop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -85,7 +85,7 @@
000003d: 0b ; end
0000015: 28 ; FIXUP func body size
0000013: 2a ; FIXUP section size
-getlocal.wasm: file format wasm 0x00000d
+getlocal.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/global.txt b/test/dump/global.txt
index 804ece4f..eb01bf83 100644
--- a/test/dump/global.txt
+++ b/test/dump/global.txt
@@ -17,7 +17,7 @@
(global f64 (get_global 3)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "IMPORT" (2)
0000008: 02 ; section code
0000009: 00 ; section size (guess)
@@ -100,7 +100,7 @@
0000086: 03 ; global index
0000087: 0b ; end
0000054: 33 ; FIXUP section size
-global.wasm: file format wasm 0x00000d
+global.wasm: file format wasm 0x000001
Section Details:
diff --git a/test/dump/grow-memory.txt b/test/dump/grow-memory.txt
index e89ccecc..6c226b45 100644
--- a/test/dump/grow-memory.txt
+++ b/test/dump/grow-memory.txt
@@ -8,7 +8,7 @@
drop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -49,7 +49,7 @@
0000023: 0b ; end
000001c: 07 ; FIXUP func body size
000001a: 09 ; FIXUP section size
-grow-memory.wasm: file format wasm 0x00000d
+grow-memory.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/hexfloat_f32.txt b/test/dump/hexfloat_f32.txt
index 13ba77f8..cfc0a391 100644
--- a/test/dump/hexfloat_f32.txt
+++ b/test/dump/hexfloat_f32.txt
@@ -40,7 +40,7 @@
)
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -117,7 +117,7 @@
000007d: 0b ; end
0000015: 68 ; FIXUP func body size
0000013: 6a ; FIXUP section size
-hexfloat_f32.wasm: file format wasm 0x00000d
+hexfloat_f32.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/hexfloat_f64.txt b/test/dump/hexfloat_f64.txt
index 15268040..896bd9df 100644
--- a/test/dump/hexfloat_f64.txt
+++ b/test/dump/hexfloat_f64.txt
@@ -40,7 +40,7 @@
)
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -119,7 +119,7 @@
0000015: ac01 ; FIXUP func body size
; move data: [14, c3) -> [15, c4)
0000013: af01 ; FIXUP section size
-hexfloat_f64.wasm: file format wasm 0x00000d
+hexfloat_f64.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/if-then-else-list.txt b/test/dump/if-then-else-list.txt
index f16e66ab..285d83e4 100644
--- a/test/dump/if-then-else-list.txt
+++ b/test/dump/if-then-else-list.txt
@@ -16,7 +16,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -60,7 +60,7 @@
0000029: 0b ; end
0000015: 14 ; FIXUP func body size
0000013: 16 ; FIXUP section size
-if-then-else-list.wasm: file format wasm 0x00000d
+if-then-else-list.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/if-then-list.txt b/test/dump/if-then-list.txt
index a386d5f7..ddae8460 100644
--- a/test/dump/if-then-list.txt
+++ b/test/dump/if-then-list.txt
@@ -9,7 +9,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -42,7 +42,7 @@
000001e: 0b ; end
0000015: 09 ; FIXUP func body size
0000013: 0b ; FIXUP section size
-if-then-list.wasm: file format wasm 0x00000d
+if-then-list.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/if.txt b/test/dump/if.txt
index 099bb40f..37f964c6 100644
--- a/test/dump/if.txt
+++ b/test/dump/if.txt
@@ -22,7 +22,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -79,7 +79,7 @@
000003a: 0b ; end
0000030: 0a ; FIXUP func body size
0000014: 26 ; FIXUP section size
-if.wasm: file format wasm 0x00000d
+if.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/import.txt b/test/dump/import.txt
index 9d945d28..bc2b7cc6 100644
--- a/test/dump/import.txt
+++ b/test/dump/import.txt
@@ -5,7 +5,7 @@
(import "ignored" "test2" (func (param i32) (result i32))))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -44,7 +44,7 @@
0000037: 00 ; import kind
0000038: 01 ; import signature index
0000018: 20 ; FIXUP section size
-import.wasm: file format wasm 0x00000d
+import.wasm: file format wasm 0x000001
Section Details:
diff --git a/test/dump/invalid-data-segment-no-memory.txt b/test/dump/invalid-data-segment-no-memory.txt
index 7e37c280..6476485a 100644
--- a/test/dump/invalid-data-segment-no-memory.txt
+++ b/test/dump/invalid-data-segment-no-memory.txt
@@ -3,7 +3,7 @@
(data (i32.const 0) "hello"))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "DATA" (11)
0000008: 0b ; section code
0000009: 00 ; section size (guess)
diff --git a/test/dump/invalid-data-segment-offset.txt b/test/dump/invalid-data-segment-offset.txt
index 7da6ee21..46ea5e93 100644
--- a/test/dump/invalid-data-segment-offset.txt
+++ b/test/dump/invalid-data-segment-offset.txt
@@ -4,7 +4,7 @@
(data (i32.add (i32.const 1) (i32.const 2)) "foo"))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "MEMORY" (5)
0000008: 05 ; section code
0000009: 00 ; section size (guess)
diff --git a/test/dump/invalid-elem-segment-no-table.txt b/test/dump/invalid-elem-segment-no-table.txt
index d797f11f..8d4a47f2 100644
--- a/test/dump/invalid-elem-segment-no-table.txt
+++ b/test/dump/invalid-elem-segment-no-table.txt
@@ -5,7 +5,7 @@
(elem (i32.const 0) 0 1))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
diff --git a/test/dump/invalid-elem-segment-offset.txt b/test/dump/invalid-elem-segment-offset.txt
index e5834ab4..460c7a1a 100644
--- a/test/dump/invalid-elem-segment-offset.txt
+++ b/test/dump/invalid-elem-segment-offset.txt
@@ -5,7 +5,7 @@
(elem (i32.eqz (i32.const 1)) 0))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
diff --git a/test/dump/load-aligned.txt b/test/dump/load-aligned.txt
index aa9a62cb..b5215c53 100644
--- a/test/dump/load-aligned.txt
+++ b/test/dump/load-aligned.txt
@@ -53,7 +53,7 @@
drop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -183,7 +183,7 @@
000007c: 0b ; end
000001a: 62 ; FIXUP func body size
0000018: 64 ; FIXUP section size
-load-aligned.wasm: file format wasm 0x00000d
+load-aligned.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/load.txt b/test/dump/load.txt
index f04bd8e2..76f4c44d 100644
--- a/test/dump/load.txt
+++ b/test/dump/load.txt
@@ -47,7 +47,7 @@
drop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -165,7 +165,7 @@
0000070: 0b ; end
000001a: 56 ; FIXUP func body size
0000018: 58 ; FIXUP section size
-load.wasm: file format wasm 0x00000d
+load.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/locals.txt b/test/dump/locals.txt
index 899da803..3113322c 100644
--- a/test/dump/locals.txt
+++ b/test/dump/locals.txt
@@ -4,7 +4,7 @@
(func (local i32 i64 i64 f32 f32 f32 f64 f64 f64 f64)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -38,7 +38,7 @@
000001f: 0b ; end
0000015: 0a ; FIXUP func body size
0000013: 0c ; FIXUP section size
-locals.wasm: file format wasm 0x00000d
+locals.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/loop-257-exprs-br.txt b/test/dump/loop-257-exprs-br.txt
index d98def34..cb6283f8 100644
--- a/test/dump/loop-257-exprs-br.txt
+++ b/test/dump/loop-257-exprs-br.txt
@@ -55,7 +55,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -353,7 +353,7 @@
0000015: 9002 ; FIXUP func body size
; move data: [14, 127) -> [15, 128)
0000013: 9302 ; FIXUP section size
-loop-257-exprs-br.wasm: file format wasm 0x00000d
+loop-257-exprs-br.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/loop-257-exprs.txt b/test/dump/loop-257-exprs.txt
index 34f4c122..68df24bc 100644
--- a/test/dump/loop-257-exprs.txt
+++ b/test/dump/loop-257-exprs.txt
@@ -48,7 +48,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -336,7 +336,7 @@
0000015: 8602 ; FIXUP func body size
; move data: [14, 11d) -> [15, 11e)
0000013: 8902 ; FIXUP section size
-loop-257-exprs.wasm: file format wasm 0x00000d
+loop-257-exprs.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/loop.txt b/test/dump/loop.txt
index e645d42f..e63ce9df 100644
--- a/test/dump/loop.txt
+++ b/test/dump/loop.txt
@@ -8,7 +8,7 @@
end))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -39,7 +39,7 @@
000001c: 0b ; end
0000015: 07 ; FIXUP func body size
0000013: 09 ; FIXUP section size
-loop.wasm: file format wasm 0x00000d
+loop.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/memory-1-byte.txt b/test/dump/memory-1-byte.txt
index ea002b7a..04ed22f5 100644
--- a/test/dump/memory-1-byte.txt
+++ b/test/dump/memory-1-byte.txt
@@ -3,7 +3,7 @@
(module (memory 1))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "MEMORY" (5)
0000008: 05 ; section code
0000009: 00 ; section size (guess)
@@ -12,7 +12,7 @@
000000b: 00 ; limits: flags
000000c: 01 ; limits: initial
0000009: 03 ; FIXUP section size
-memory-1-byte.wasm: file format wasm 0x00000d
+memory-1-byte.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/memory-data-size.txt b/test/dump/memory-data-size.txt
index ac40743b..1f255db5 100644
--- a/test/dump/memory-data-size.txt
+++ b/test/dump/memory-data-size.txt
@@ -6,7 +6,7 @@
(module (memory 5))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "MEMORY" (5)
0000008: 05 ; section code
0000009: 00 ; section size (guess)
@@ -16,7 +16,7 @@
000000c: 01 ; limits: initial
0000009: 03 ; FIXUP section size
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "MEMORY" (5)
0000008: 05 ; section code
0000009: 00 ; section size (guess)
@@ -26,7 +26,7 @@
000000c: 02 ; limits: initial
0000009: 03 ; FIXUP section size
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "MEMORY" (5)
0000008: 05 ; section code
0000009: 00 ; section size (guess)
@@ -36,7 +36,7 @@
000000c: 04 ; limits: initial
0000009: 03 ; FIXUP section size
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "MEMORY" (5)
0000008: 05 ; section code
0000009: 00 ; section size (guess)
@@ -45,19 +45,19 @@
000000b: 00 ; limits: flags
000000c: 05 ; limits: initial
0000009: 03 ; FIXUP section size
-memory-data-size.0.wasm: file format wasm 0x00000d
+memory-data-size.0.wasm: file format wasm 0x000001
Code Disassembly:
-memory-data-size.1.wasm: file format wasm 0x00000d
+memory-data-size.1.wasm: file format wasm 0x000001
Code Disassembly:
-memory-data-size.2.wasm: file format wasm 0x00000d
+memory-data-size.2.wasm: file format wasm 0x000001
Code Disassembly:
-memory-data-size.3.wasm: file format wasm 0x00000d
+memory-data-size.3.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/memory-hex.txt b/test/dump/memory-hex.txt
index c50dbbc6..6757902c 100644
--- a/test/dump/memory-hex.txt
+++ b/test/dump/memory-hex.txt
@@ -5,7 +5,7 @@
(data "\00\01\02\03\04\05\06\07\08\09\0a")))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "MEMORY" (5)
0000008: 05 ; section code
0000009: 00 ; section size (guess)
@@ -28,7 +28,7 @@
; data segment data 0
0000016: 0001 0203 0405 0607 0809 0a ; data segment data
000000f: 11 ; FIXUP section size
-memory-hex.wasm: file format wasm 0x00000d
+memory-hex.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/memory.txt b/test/dump/memory.txt
index 81605cd3..bf4fed77 100644
--- a/test/dump/memory.txt
+++ b/test/dump/memory.txt
@@ -6,7 +6,7 @@
(data (i32.const 20) "goodbye, Lorem ipsum dolor sit amet, consectetur"))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "MEMORY" (5)
0000008: 05 ; section code
0000009: 00 ; section size (guess)
@@ -38,7 +38,7 @@
000002f: 7073 756d 2064 6f6c 6f72 2073 6974 2061
000003f: 6d65 742c 2063 6f6e 7365 6374 6574 7572 ; data segment data
000000e: 40 ; FIXUP section size
-memory.wasm: file format wasm 0x00000d
+memory.wasm: file format wasm 0x000001
Section Details:
diff --git a/test/dump/no-canonicalize.txt b/test/dump/no-canonicalize.txt
index cdba6dd0..c18a2599 100644
--- a/test/dump/no-canonicalize.txt
+++ b/test/dump/no-canonicalize.txt
@@ -23,7 +23,7 @@
drop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 0000 0000 00 ; section size (guess)
@@ -146,7 +146,7 @@
0000099: 0b ; end
000008d: 8880 8080 00 ; FIXUP func body size
000006b: aa80 8080 00 ; FIXUP section size
-no-canonicalize.wasm: file format wasm 0x00000d
+no-canonicalize.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/nocheck.txt b/test/dump/nocheck.txt
index 10be62dc..b087fb23 100644
--- a/test/dump/nocheck.txt
+++ b/test/dump/nocheck.txt
@@ -8,7 +8,7 @@
(export "foo" (func 0)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -49,7 +49,7 @@
0000030: 0b ; end
000001f: 11 ; FIXUP func body size
000001d: 13 ; FIXUP section size
-nocheck.wasm: file format wasm 0x00000d
+nocheck.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/nop.txt b/test/dump/nop.txt
index 77d6460b..8f3e15f3 100644
--- a/test/dump/nop.txt
+++ b/test/dump/nop.txt
@@ -5,7 +5,7 @@
nop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -32,7 +32,7 @@
0000018: 0b ; end
0000015: 03 ; FIXUP func body size
0000013: 05 ; FIXUP section size
-nop.wasm: file format wasm 0x00000d
+nop.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/param-multi.txt b/test/dump/param-multi.txt
index 3d9f23dd..12833720 100644
--- a/test/dump/param-multi.txt
+++ b/test/dump/param-multi.txt
@@ -4,7 +4,7 @@
(func (param i32 i64 f32 f64)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -34,7 +34,7 @@
000001b: 0b ; end
0000019: 02 ; FIXUP func body size
0000017: 04 ; FIXUP section size
-param-multi.wasm: file format wasm 0x00000d
+param-multi.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/result.txt b/test/dump/result.txt
index 14795607..ba625a9a 100644
--- a/test/dump/result.txt
+++ b/test/dump/result.txt
@@ -11,7 +11,7 @@
f64.const 0))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -79,7 +79,7 @@
0000042: 0b ; end
0000037: 0b ; FIXUP func body size
0000023: 1f ; FIXUP section size
-result.wasm: file format wasm 0x00000d
+result.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/return.txt b/test/dump/return.txt
index bedb2135..b1e4384f 100644
--- a/test/dump/return.txt
+++ b/test/dump/return.txt
@@ -8,7 +8,7 @@
return))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -49,7 +49,7 @@
0000023: 0b ; end
0000020: 03 ; FIXUP func body size
0000018: 0b ; FIXUP section size
-return.wasm: file format wasm 0x00000d
+return.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/select.txt b/test/dump/select.txt
index abc76e95..592d183a 100644
--- a/test/dump/select.txt
+++ b/test/dump/select.txt
@@ -24,7 +24,7 @@
drop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -82,7 +82,7 @@
000004b: 0b ; end
0000015: 36 ; FIXUP func body size
0000013: 38 ; FIXUP section size
-select.wasm: file format wasm 0x00000d
+select.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/setglobal.txt b/test/dump/setglobal.txt
index 8353c7e8..07f43807 100644
--- a/test/dump/setglobal.txt
+++ b/test/dump/setglobal.txt
@@ -7,7 +7,7 @@
set_global 0))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -47,7 +47,7 @@
0000029: 0b ; end
0000020: 09 ; FIXUP func body size
000001e: 0b ; FIXUP section size
-setglobal.wasm: file format wasm 0x00000d
+setglobal.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/setlocal-param.txt b/test/dump/setlocal-param.txt
index dd6b9c7d..0a5646a3 100644
--- a/test/dump/setlocal-param.txt
+++ b/test/dump/setlocal-param.txt
@@ -21,7 +21,7 @@
set_local 5))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -81,7 +81,7 @@
0000042: 0b ; end
0000017: 2b ; FIXUP func body size
0000015: 2d ; FIXUP section size
-setlocal-param.wasm: file format wasm 0x00000d
+setlocal-param.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/setlocal.txt b/test/dump/setlocal.txt
index 2af6b4d9..8c00f235 100644
--- a/test/dump/setlocal.txt
+++ b/test/dump/setlocal.txt
@@ -25,7 +25,7 @@
set_local 7))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -97,7 +97,7 @@
0000059: 0b ; end
0000015: 44 ; FIXUP func body size
0000013: 46 ; FIXUP section size
-setlocal.wasm: file format wasm 0x00000d
+setlocal.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/signatures.txt b/test/dump/signatures.txt
index 3c1f8c62..577bd20f 100644
--- a/test/dump/signatures.txt
+++ b/test/dump/signatures.txt
@@ -14,7 +14,7 @@
(type (func (param i32) (result f64))))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -66,7 +66,7 @@
000002e: 01 ; num results
000002f: 7c ; f64
0000009: 26 ; FIXUP section size
-signatures.wasm: file format wasm 0x00000d
+signatures.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/store-aligned.txt b/test/dump/store-aligned.txt
index 19ede78b..bade05cd 100644
--- a/test/dump/store-aligned.txt
+++ b/test/dump/store-aligned.txt
@@ -53,7 +53,7 @@
i64.store align=8))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -199,7 +199,7 @@
000008c: 0b ; end
000001a: 72 ; FIXUP func body size
0000018: 74 ; FIXUP section size
-store-aligned.wasm: file format wasm 0x00000d
+store-aligned.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/store.txt b/test/dump/store.txt
index a40f20a2..26d36cff 100644
--- a/test/dump/store.txt
+++ b/test/dump/store.txt
@@ -32,7 +32,7 @@
f64.store))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -129,7 +129,7 @@
0000065: 0b ; end
000001a: 4b ; FIXUP func body size
0000018: 4d ; FIXUP section size
-store.wasm: file format wasm 0x00000d
+store.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/string-escape.txt b/test/dump/string-escape.txt
index a1d9a7d7..5176d4b6 100644
--- a/test/dump/string-escape.txt
+++ b/test/dump/string-escape.txt
@@ -3,7 +3,7 @@
(module (func) (export "tab:\t newline:\n slash:\\ quote:\' double:\"" (func 0)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -40,7 +40,7 @@
0000045: 0b ; end
0000043: 02 ; FIXUP func body size
0000041: 04 ; FIXUP section size
-string-escape.wasm: file format wasm 0x00000d
+string-escape.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/string-hex.txt b/test/dump/string-hex.txt
index 894f25d8..6edb6872 100644
--- a/test/dump/string-hex.txt
+++ b/test/dump/string-hex.txt
@@ -3,7 +3,7 @@
(module (func) (export "foo\ba\dc\0d\ee" (func 0)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -38,7 +38,7 @@
0000024: 0b ; end
0000022: 02 ; FIXUP func body size
0000020: 04 ; FIXUP section size
-string-hex.wasm: file format wasm 0x00000d
+string-hex.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/table.txt b/test/dump/table.txt
index 81e9fcbf..b0c6ea62 100644
--- a/test/dump/table.txt
+++ b/test/dump/table.txt
@@ -9,7 +9,7 @@
(table anyfunc (elem 0 0 1 2)))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -86,7 +86,7 @@
0000045: 0b ; end
000003a: 0b ; FIXUP func body size
0000032: 13 ; FIXUP section size
-table.wasm: file format wasm 0x00000d
+table.wasm: file format wasm 0x000001
Section Details:
diff --git a/test/dump/tee_local.txt b/test/dump/tee_local.txt
index 0d0aced0..3fbdd8c3 100644
--- a/test/dump/tee_local.txt
+++ b/test/dump/tee_local.txt
@@ -8,7 +8,7 @@
drop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -41,7 +41,7 @@
000001e: 0b ; end
0000015: 09 ; FIXUP func body size
0000013: 0b ; FIXUP section size
-tee_local.wasm: file format wasm 0x00000d
+tee_local.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/unary.txt b/test/dump/unary.txt
index 4cacec65..80487c56 100644
--- a/test/dump/unary.txt
+++ b/test/dump/unary.txt
@@ -36,7 +36,7 @@
drop))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -95,7 +95,7 @@
0000042: 0b ; end
0000015: 2d ; FIXUP func body size
0000013: 2f ; FIXUP section size
-unary.wasm: file format wasm 0x00000d
+unary.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/dump/unreachable.txt b/test/dump/unreachable.txt
index bc8cc115..ff3926dc 100644
--- a/test/dump/unreachable.txt
+++ b/test/dump/unreachable.txt
@@ -5,7 +5,7 @@
unreachable))
(;; STDOUT ;;;
0000000: 0061 736d ; WASM_BINARY_MAGIC
-0000004: 0d00 0000 ; WASM_BINARY_VERSION
+0000004: 0100 0000 ; WASM_BINARY_VERSION
; section "TYPE" (1)
0000008: 01 ; section code
0000009: 00 ; section size (guess)
@@ -32,7 +32,7 @@
0000018: 0b ; end
0000015: 03 ; FIXUP func body size
0000013: 05 ; FIXUP section size
-unreachable.wasm: file format wasm 0x00000d
+unreachable.wasm: file format wasm 0x000001
Code Disassembly:
diff --git a/test/gen-spec-js/action.txt b/test/gen-spec-js/action.txt
index ace9edac..b2669cdf 100644
--- a/test/gen-spec-js/action.txt
+++ b/test/gen-spec-js/action.txt
@@ -11,7 +11,7 @@
(;; STDOUT ;;;
// A deliberately empty file for testing.
-$$ = instance("\x00\x61\x73\x6d\x0d\x00\x00\x00\x01\x05\x01\x60\x01\x7f\x00\x02\x12\x01\x08\x73\x70\x65\x63\x74\x65\x73\x74\x05\x70\x72\x69\x6e\x74\x00\x00\x03\x02\x01\x00\x06\x06\x01\x7f\x00\x41\x0e\x0b\x07\x16\x02\x09\x70\x72\x69\x6e\x74\x5f\x69\x33\x32\x00\x01\x06\x67\x6c\x6f\x62\x61\x6c\x03\x00\x0a\x08\x01\x06\x00\x20\x00\x10\x00\x0b");
+$$ = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x05\x01\x60\x01\x7f\x00\x02\x12\x01\x08\x73\x70\x65\x63\x74\x65\x73\x74\x05\x70\x72\x69\x6e\x74\x00\x00\x03\x02\x01\x00\x06\x06\x01\x7f\x00\x41\x0e\x0b\x07\x16\x02\x09\x70\x72\x69\x6e\x74\x5f\x69\x33\x32\x00\x01\x06\x67\x6c\x6f\x62\x61\x6c\x03\x00\x0a\x08\x01\x06\x00\x20\x00\x10\x00\x0b");
$$.exports["print_i32"](1);
$$.exports["global"];
;;; STDOUT ;;)
diff --git a/test/gen-spec-js/assert_return.txt b/test/gen-spec-js/assert_return.txt
index 02bea616..54b86416 100644
--- a/test/gen-spec-js/assert_return.txt
+++ b/test/gen-spec-js/assert_return.txt
@@ -37,7 +37,7 @@
(;; STDOUT ;;;
// A deliberately empty file for testing.
-$$ = instance("\x00\x61\x73\x6d\x0d\x00\x00\x00\x01\x24\x07\x60\x00\x00\x60\x00\x01\x7f\x60\x02\x7f\x7f\x01\x7f\x60\x02\x7e\x7e\x01\x7e\x60\x02\x7d\x7d\x01\x7d\x60\x02\x7c\x7c\x01\x7c\x60\x00\x01\x7d\x03\x0a\x09\x00\x01\x02\x03\x04\x05\x06\x00\x00\x07\x56\x09\x09\x6e\x6f\x5f\x72\x65\x73\x75\x6c\x74\x00\x00\x02\x34\x32\x00\x01\x07\x69\x33\x32\x2e\x61\x64\x64\x00\x02\x07\x69\x36\x34\x2e\x61\x64\x64\x00\x03\x07\x66\x33\x32\x2e\x61\x64\x64\x00\x04\x07\x66\x36\x34\x2e\x61\x64\x64\x00\x05\x03\x6e\x61\x6e\x00\x06\x08\x61\x73\x73\x65\x72\x74\x5f\x30\x00\x07\x08\x61\x73\x73\x65\x72\x74\x5f\x31\x00\x08\x0a\x5a\x09\x02\x00\x0b\x04\x00\x41\x2a\x0b\x07\x00\x20\x00\x20\x01\x6a\x0b\x07\x00\x20\x00\x20\x01\x7c\x0b\x07\x00\x20\x00\x20\x01\x92\x0b\x07\x00\x20\x00\x20\x01\xa0\x0b\x07\x00\x43\x02\x00\x80\x7f\x0b\x13\x00\x02\x40\x42\x01\x42\x02\x10\x03\x42\x03\x51\x45\x0d\x00\x0f\x0b\x00\x0b\x14\x00\x02\x40\x10\x06\xbc\x43\x02\x00\x80\x7f\xbc\x46\x45\x0d\x00\x0f\x0b\x00\x0b");
+$$ = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x24\x07\x60\x00\x00\x60\x00\x01\x7f\x60\x02\x7f\x7f\x01\x7f\x60\x02\x7e\x7e\x01\x7e\x60\x02\x7d\x7d\x01\x7d\x60\x02\x7c\x7c\x01\x7c\x60\x00\x01\x7d\x03\x0a\x09\x00\x01\x02\x03\x04\x05\x06\x00\x00\x07\x56\x09\x09\x6e\x6f\x5f\x72\x65\x73\x75\x6c\x74\x00\x00\x02\x34\x32\x00\x01\x07\x69\x33\x32\x2e\x61\x64\x64\x00\x02\x07\x69\x36\x34\x2e\x61\x64\x64\x00\x03\x07\x66\x33\x32\x2e\x61\x64\x64\x00\x04\x07\x66\x36\x34\x2e\x61\x64\x64\x00\x05\x03\x6e\x61\x6e\x00\x06\x08\x61\x73\x73\x65\x72\x74\x5f\x30\x00\x07\x08\x61\x73\x73\x65\x72\x74\x5f\x31\x00\x08\x0a\x5a\x09\x02\x00\x0b\x04\x00\x41\x2a\x0b\x07\x00\x20\x00\x20\x01\x6a\x0b\x07\x00\x20\x00\x20\x01\x7c\x0b\x07\x00\x20\x00\x20\x01\x92\x0b\x07\x00\x20\x00\x20\x01\xa0\x0b\x07\x00\x43\x02\x00\x80\x7f\x0b\x13\x00\x02\x40\x42\x01\x42\x02\x10\x03\x42\x03\x51\x45\x0d\x00\x0f\x0b\x00\x0b\x14\x00\x02\x40\x10\x06\xbc\x43\x02\x00\x80\x7f\xbc\x46\x45\x0d\x00\x0f\x0b\x00\x0b");
assert_return(() => $$.exports["no_result"]());
assert_return(() => $$.exports["42"](), 42);
assert_return(() => $$.exports["i32.add"](1, 2), 3);
diff --git a/test/gen-spec-js/assert_return_nan.txt b/test/gen-spec-js/assert_return_nan.txt
index 0fdd2334..754d1345 100644
--- a/test/gen-spec-js/assert_return_nan.txt
+++ b/test/gen-spec-js/assert_return_nan.txt
@@ -10,7 +10,7 @@
(;; STDOUT ;;;
// A deliberately empty file for testing.
-$$ = instance("\x00\x61\x73\x6d\x0d\x00\x00\x00\x01\x0d\x03\x60\x00\x01\x7d\x60\x01\x7d\x01\x7d\x60\x00\x00\x03\x04\x03\x00\x01\x02\x07\x1d\x03\x03\x6e\x61\x6e\x00\x00\x08\x70\x61\x73\x73\x74\x68\x72\x75\x00\x01\x08\x61\x73\x73\x65\x72\x74\x5f\x30\x00\x02\x0a\x29\x03\x07\x00\x43\x00\x00\xc0\x7f\x0b\x04\x00\x20\x00\x0b\x1a\x01\x01\x7d\x02\x40\x43\x00\x00\xc0\xff\x10\x01\x22\x00\xbc\x20\x00\xbc\x46\x45\x0d\x00\x0f\x0b\x00\x0b");
+$$ = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x0d\x03\x60\x00\x01\x7d\x60\x01\x7d\x01\x7d\x60\x00\x00\x03\x04\x03\x00\x01\x02\x07\x1d\x03\x03\x6e\x61\x6e\x00\x00\x08\x70\x61\x73\x73\x74\x68\x72\x75\x00\x01\x08\x61\x73\x73\x65\x72\x74\x5f\x30\x00\x02\x0a\x29\x03\x07\x00\x43\x00\x00\xc0\x7f\x0b\x04\x00\x20\x00\x0b\x1a\x01\x01\x7d\x02\x40\x43\x00\x00\xc0\xff\x10\x01\x22\x00\xbc\x20\x00\xbc\x46\x45\x0d\x00\x0f\x0b\x00\x0b");
assert_return_nan(() => $$.exports["nan"]());
assert_return(() => $$.exports["assert_0"]());
;;; STDOUT ;;)
diff --git a/test/gen-spec-js/assert_trap.txt b/test/gen-spec-js/assert_trap.txt
index 80a7f632..2096245c 100644
--- a/test/gen-spec-js/assert_trap.txt
+++ b/test/gen-spec-js/assert_trap.txt
@@ -12,7 +12,7 @@
(;; STDOUT ;;;
// A deliberately empty file for testing.
-$$ = instance("\x00\x61\x73\x6d\x0d\x00\x00\x00\x01\x09\x02\x60\x00\x00\x60\x01\x7d\x01\x7f\x03\x04\x03\x00\x01\x00\x07\x28\x03\x0b\x75\x6e\x72\x65\x61\x63\x68\x61\x62\x6c\x65\x00\x00\x0b\x69\x33\x32\x2e\x74\x72\x75\x6e\x63\x5f\x73\x00\x01\x08\x61\x73\x73\x65\x72\x74\x5f\x30\x00\x02\x0a\x17\x03\x03\x00\x00\x0b\x05\x00\x20\x00\xa8\x0b\x0b\x00\x43\x00\x00\xc0\xff\x10\x01\x0c\x00\x0b");
+$$ = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x09\x02\x60\x00\x00\x60\x01\x7d\x01\x7f\x03\x04\x03\x00\x01\x00\x07\x28\x03\x0b\x75\x6e\x72\x65\x61\x63\x68\x61\x62\x6c\x65\x00\x00\x0b\x69\x33\x32\x2e\x74\x72\x75\x6e\x63\x5f\x73\x00\x01\x08\x61\x73\x73\x65\x72\x74\x5f\x30\x00\x02\x0a\x17\x03\x03\x00\x00\x0b\x05\x00\x20\x00\xa8\x0b\x0b\x00\x43\x00\x00\xc0\xff\x10\x01\x0c\x00\x0b");
assert_trap(() => $$.exports["unreachable"]());
assert_trap(() => $$.exports["assert_0"]());
;;; STDOUT ;;)
diff --git a/test/gen-spec-js/assert_uninstantiable.txt b/test/gen-spec-js/assert_uninstantiable.txt
index 81cd8bba..84d8c5e6 100644
--- a/test/gen-spec-js/assert_uninstantiable.txt
+++ b/test/gen-spec-js/assert_uninstantiable.txt
@@ -8,5 +8,5 @@
(;; STDOUT ;;;
// A deliberately empty file for testing.
-assert_uninstantiable("\x00\x61\x73\x6d\x0d\x00\x00\x00\x01\x04\x01\x60\x00\x00\x03\x02\x01\x00\x08\x01\x00\x0a\x05\x01\x03\x00\x00\x0b");
+assert_uninstantiable("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x04\x01\x60\x00\x00\x03\x02\x01\x00\x08\x01\x00\x0a\x05\x01\x03\x00\x00\x0b");
;;; STDOUT ;;)
diff --git a/test/gen-spec-js/assert_unlinkable.txt b/test/gen-spec-js/assert_unlinkable.txt
index 7ec3ce04..8c5f1699 100644
--- a/test/gen-spec-js/assert_unlinkable.txt
+++ b/test/gen-spec-js/assert_unlinkable.txt
@@ -6,5 +6,5 @@
(;; STDOUT ;;;
// A deliberately empty file for testing.
-assert_unlinkable("\x00\x61\x73\x6d\x0d\x00\x00\x00\x01\x04\x01\x60\x00\x00\x02\x0b\x01\x03\x66\x6f\x6f\x03\x62\x61\x72\x00\x00");
+assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x04\x01\x60\x00\x00\x02\x0b\x01\x03\x66\x6f\x6f\x03\x62\x61\x72\x00\x00");
;;; STDOUT ;;)
diff --git a/test/gen-spec-js/basic.txt b/test/gen-spec-js/basic.txt
index 85d705ca..57d542f8 100644
--- a/test/gen-spec-js/basic.txt
+++ b/test/gen-spec-js/basic.txt
@@ -7,6 +7,6 @@
(;; STDOUT ;;;
// A deliberately empty file for testing.
-$$ = instance("\x00\x61\x73\x6d\x0d\x00\x00\x00\x01\x05\x01\x60\x00\x01\x7f\x03\x02\x01\x00\x07\x06\x01\x02\x34\x32\x00\x00\x0a\x06\x01\x04\x00\x41\x2a\x0b");
+$$ = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x05\x01\x60\x00\x01\x7f\x03\x02\x01\x00\x07\x06\x01\x02\x34\x32\x00\x00\x0a\x06\x01\x04\x00\x41\x2a\x0b");
assert_return(() => $$.exports["42"](), 42);
;;; STDOUT ;;)
diff --git a/test/gen-spec-js/many-modules.txt b/test/gen-spec-js/many-modules.txt
index 79c357c5..c6179866 100644
--- a/test/gen-spec-js/many-modules.txt
+++ b/test/gen-spec-js/many-modules.txt
@@ -11,9 +11,9 @@
(;; STDOUT ;;;
// A deliberately empty file for testing.
-let $A = $$ = instance("\x00\x61\x73\x6d\x0d\x00\x00\x00\x01\x05\x01\x60\x00\x01\x7f\x03\x02\x01\x00\x07\x05\x01\x01\x66\x00\x00\x0a\x06\x01\x04\x00\x41\x01\x0b");
-let $B = $$ = instance("\x00\x61\x73\x6d\x0d\x00\x00\x00\x01\x05\x01\x60\x00\x01\x7f\x03\x02\x01\x00\x07\x05\x01\x01\x66\x00\x00\x0a\x06\x01\x04\x00\x41\x02\x0b");
-let $C = $$ = instance("\x00\x61\x73\x6d\x0d\x00\x00\x00\x01\x05\x01\x60\x00\x01\x7f\x03\x02\x01\x00\x07\x05\x01\x01\x66\x00\x00\x0a\x06\x01\x04\x00\x41\x03\x0b");
+let $A = $$ = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x05\x01\x60\x00\x01\x7f\x03\x02\x01\x00\x07\x05\x01\x01\x66\x00\x00\x0a\x06\x01\x04\x00\x41\x01\x0b");
+let $B = $$ = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x05\x01\x60\x00\x01\x7f\x03\x02\x01\x00\x07\x05\x01\x01\x66\x00\x00\x0a\x06\x01\x04\x00\x41\x02\x0b");
+let $C = $$ = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x05\x01\x60\x00\x01\x7f\x03\x02\x01\x00\x07\x05\x01\x01\x66\x00\x00\x0a\x06\x01\x04\x00\x41\x03\x0b");
assert_return(() => $$.exports["f"](), 3);
assert_return(() => $A.exports["f"](), 1);
assert_return(() => $B.exports["f"](), 2);
diff --git a/test/gen-spec-js/register.txt b/test/gen-spec-js/register.txt
index 18ffa688..79c0ebfa 100644
--- a/test/gen-spec-js/register.txt
+++ b/test/gen-spec-js/register.txt
@@ -13,8 +13,8 @@
(;; STDOUT ;;;
// A deliberately empty file for testing.
-$$ = instance("\x00\x61\x73\x6d\x0d\x00\x00\x00\x01\x05\x01\x60\x00\x01\x7f\x03\x02\x01\x00\x07\x05\x01\x01\x66\x00\x00\x0a\x06\x01\x04\x00\x41\x01\x0b");
+$$ = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x05\x01\x60\x00\x01\x7f\x03\x02\x01\x00\x07\x05\x01\x01\x66\x00\x00\x0a\x06\x01\x04\x00\x41\x01\x0b");
register("A", $$)
-$$ = instance("\x00\x61\x73\x6d\x0d\x00\x00\x00\x01\x05\x01\x60\x00\x01\x7f\x02\x07\x01\x01\x41\x01\x66\x00\x00\x03\x02\x01\x00\x07\x05\x01\x01\x67\x00\x01\x0a\x06\x01\x04\x00\x10\x00\x0b");
+$$ = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x05\x01\x60\x00\x01\x7f\x02\x07\x01\x01\x41\x01\x66\x00\x00\x03\x02\x01\x00\x07\x05\x01\x01\x67\x00\x01\x0a\x06\x01\x04\x00\x10\x00\x0b");
assert_return(() => $$.exports["g"](), 1);
;;; STDOUT ;;)
diff --git a/test/gen-wasm.py b/test/gen-wasm.py
index 97869f64..cf7539ab 100755
--- a/test/gen-wasm.py
+++ b/test/gen-wasm.py
@@ -46,7 +46,7 @@ NAMED_VALUES = {
'function': 0x60, # -0x20
'void': 0x40, # -0x40
'magic': (0, 0x61, 0x73, 0x6d),
- 'version': (0xd, 0, 0, 0),
+ 'version': (1, 0, 0, 0),
# section codes
'USER': 0,
diff --git a/test/link/data.txt b/test/link/data.txt
index 83e05d2f..823a53ba 100644
--- a/test/link/data.txt
+++ b/test/link/data.txt
@@ -11,7 +11,7 @@
(data (i32.const 100) "world")
)
(;; STDOUT ;;;
-linked.wasm: file format wasm 0x00000d
+linked.wasm: file format wasm 0x000001
Sections:
diff --git a/test/link/export.txt b/test/link/export.txt
index abdc567c..4100c274 100644
--- a/test/link/export.txt
+++ b/test/link/export.txt
@@ -13,7 +13,7 @@
call 0)
)
(;; STDOUT ;;;
-linked.wasm: file format wasm 0x00000d
+linked.wasm: file format wasm 0x000001
Sections:
diff --git a/test/link/function_calls.txt b/test/link/function_calls.txt
index db999f68..7814629d 100644
--- a/test/link/function_calls.txt
+++ b/test/link/function_calls.txt
@@ -16,7 +16,7 @@
call 1)
)
(;; STDOUT ;;;
-linked.wasm: file format wasm 0x00000d
+linked.wasm: file format wasm 0x000001
Sections:
diff --git a/test/link/function_calls_incremental.txt b/test/link/function_calls_incremental.txt
index 77753a85..b310ce39 100644
--- a/test/link/function_calls_incremental.txt
+++ b/test/link/function_calls_incremental.txt
@@ -24,7 +24,7 @@
call 1)
)
(;; STDOUT ;;;
-linked.wasm: file format wasm 0x00000d
+linked.wasm: file format wasm 0x000001
Sections:
diff --git a/test/link/globals.txt b/test/link/globals.txt
index 01e63e81..4ccdee6a 100644
--- a/test/link/globals.txt
+++ b/test/link/globals.txt
@@ -21,7 +21,7 @@
call 0)
)
(;; STDOUT ;;;
-linked.wasm: file format wasm 0x00000d
+linked.wasm: file format wasm 0x000001
Sections:
diff --git a/test/link/incremental.txt b/test/link/incremental.txt
index d05c4fd3..1c3b8e60 100644
--- a/test/link/incremental.txt
+++ b/test/link/incremental.txt
@@ -27,7 +27,7 @@
(table anyfunc (elem $func3 $func3))
)
(;; STDOUT ;;;
-linked.wasm: file format wasm 0x00000d
+linked.wasm: file format wasm 0x000001
Sections:
diff --git a/test/link/interp.txt b/test/link/interp.txt
index 0f53beb0..cca003db 100644
--- a/test/link/interp.txt
+++ b/test/link/interp.txt
@@ -41,7 +41,7 @@
(assert_return (invoke "call_import2") (i64.const 99))
(;; STDOUT ;;;
-linked.wasm: file format wasm 0x00000d
+linked.wasm: file format wasm 0x000001
Sections:
diff --git a/test/link/names.txt b/test/link/names.txt
index d3a6be02..b50312a7 100644
--- a/test/link/names.txt
+++ b/test/link/names.txt
@@ -18,7 +18,7 @@
call 0)
)
(;; STDOUT ;;;
-linked.wasm: file format wasm 0x00000d
+linked.wasm: file format wasm 0x000001
Sections:
diff --git a/test/link/table.txt b/test/link/table.txt
index 9ef40005..65b8913b 100644
--- a/test/link/table.txt
+++ b/test/link/table.txt
@@ -10,7 +10,7 @@
(table anyfunc (elem $func3 $func2 $func2))
)
(;; STDOUT ;;;
-linked.wasm: file format wasm 0x00000d
+linked.wasm: file format wasm 0x000001
Sections:
diff --git a/test/parse/module/binary-module.txt b/test/parse/module/binary-module.txt
index c4521823..8b611c7d 100644
--- a/test/parse/module/binary-module.txt
+++ b/test/parse/module/binary-module.txt
@@ -1,6 +1,6 @@
(module
"\00asm" ;; magic
- "\0d\00\00\00" ;; version
+ "\01\00\00\00" ;; version
"\01\05" ;; type section, 5 bytes
"\01\60\00\01\7f" ;; 1 type, function, no params, i32 result
"\03\02" ;; function section, 2 bytes
diff --git a/test/spec/binary.txt b/test/spec/binary.txt
index 41a7f181..5dd13df6 100644
--- a/test/spec/binary.txt
+++ b/test/spec/binary.txt
@@ -22,8 +22,10 @@ out/third_party/testsuite/binary.wast:15: assert_malformed passed:
out/third_party/testsuite/binary.wast:16: assert_malformed passed:
error: @0x00000004: unable to read uint32_t: version
out/third_party/testsuite/binary.wast:17: assert_malformed passed:
- error: @0x00000008: bad wasm file version: 0xe (expected 0xd)
+ error: @0x00000008: bad wasm file version: 0xd (expected 0x1)
out/third_party/testsuite/binary.wast:18: assert_malformed passed:
- error: @0x00000008: bad wasm file version: 0xd000000 (expected 0xd)
-12/12 tests passed.
+ error: @0x00000008: bad wasm file version: 0xe (expected 0x1)
+out/third_party/testsuite/binary.wast:19: assert_malformed passed:
+ error: @0x00000008: bad wasm file version: 0x1000000 (expected 0x1)
+13/13 tests passed.
;;; STDOUT ;;)
diff --git a/third_party/testsuite b/third_party/testsuite
-Subproject c07a160d35ccc69cace1bfb30b63d657a35b3d1
+Subproject 3b40f00d28144913f0a8a164cdb5b577305a87f