summaryrefslogtreecommitdiff
path: root/test/binaryen.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js')
-rw-r--r--test/binaryen.js/debug-names.js.txt6
-rw-r--r--test/binaryen.js/kitchen-sink.js.txt10
2 files changed, 8 insertions, 8 deletions
diff --git a/test/binaryen.js/debug-names.js.txt b/test/binaryen.js/debug-names.js.txt
index 40e94c248..605bec650 100644
--- a/test/binaryen.js/debug-names.js.txt
+++ b/test/binaryen.js/debug-names.js.txt
@@ -11,9 +11,9 @@
=== parsed wast ===
(module $hel
(type $i32_=>_none (func (param i32)))
+ (global $ld i32 (i32.const 0))
(memory $lo 0 0)
(table $wor 0 0 funcref)
- (global $ld i32 (i32.const 0))
(func $of (param $wasm i32)
(local $!#$%&'*+-./:<=>?@\^_`|~ f64)
(nop)
@@ -23,9 +23,9 @@
=== roundtripped ===
(module $hel
(type $i32_=>_none (func (param i32)))
+ (global $ld i32 (i32.const 0))
(memory $lo 0 0)
(table $wor 0 0 funcref)
- (global $ld i32 (i32.const 0))
(func $of (param $js i32)
(local $!#$%&'*+-./:<=>?@\5c^_`|~ f64)
(nop)
@@ -35,9 +35,9 @@
=== roundtripped again ===
(module $hel
(type $i32_=>_none (func (param i32)))
+ (global $ld i32 (i32.const 0))
(memory $lo 0 0)
(table $wor 0 0 funcref)
- (global $ld i32 (i32.const 0))
(func $of (param $js i32)
(local $!#$%&'*+-./:<=>?@\5c^_`|~ f64)
(nop)
diff --git a/test/binaryen.js/kitchen-sink.js.txt b/test/binaryen.js/kitchen-sink.js.txt
index 69ff4860b..a8ea4eccf 100644
--- a/test/binaryen.js/kitchen-sink.js.txt
+++ b/test/binaryen.js/kitchen-sink.js.txt
@@ -128,12 +128,12 @@ getExpressionInfo(tuple[3])={"id":14,"type":5,"value":3.7}
(import "module" "base" (global $a-mut-global-imp (mut i32)))
(import "module" "base" (func $an-imported (param i32 f64) (result f32)))
(import "module" "base" (event $a-event-imp (attr 0) (param i32)))
+ (global $a-global i32 (i32.const 1))
(memory $0 (shared 1 256))
(data (i32.const 10) "hello, world")
(data "I am passive")
(table $t0 1 funcref)
(elem $e0 (i32.const 0) "$kitchen()sinker")
- (global $a-global i32 (i32.const 1))
(event $a-event (attr 0) (param i32))
(export "kitchen_sinker" (func "$kitchen()sinker"))
(export "a-global-exp" (global $a-global))
@@ -1990,12 +1990,12 @@ getExpressionInfo(tuple[3])={"id":14,"type":5,"value":3.7}
(import "module" "base" (global $a-mut-global-imp (mut i32)))
(import "module" "base" (func $an-imported (param i32 f64) (result f32)))
(import "module" "base" (event $a-event-imp (attr 0) (param i32)))
+ (global $a-global i32 (i32.const 1))
(memory $0 (shared 1 256))
(data (i32.const 10) "hello, world")
(data "I am passive")
(table $t0 1 funcref)
(elem $e0 (i32.const 0) "$kitchen()sinker")
- (global $a-global i32 (i32.const 1))
(event $a-event (attr 0) (param i32))
(export "kitchen_sinker" (func "$kitchen()sinker"))
(export "a-global-exp" (global $a-global))
@@ -4386,14 +4386,14 @@ module loaded from text form:
sizeof Literal: 24
(module
(type $none_=>_none (func))
+ (global $a-global i32 (i32.const 125))
+ (global $a-global2 i32 (i32.const 2))
+ (global $a-global3 i32 (i32.const 3))
(memory $0 1 256)
(data (i32.const 10) "hello, world")
(data (global.get $a-global) "segment data 2")
(table $t0 1 funcref)
(elem $e0 (i32.const 0) $fn0 $fn1 $fn2)
- (global $a-global i32 (i32.const 125))
- (global $a-global2 i32 (i32.const 2))
- (global $a-global3 i32 (i32.const 3))
(export "export0" (func $fn0))
(export "export1" (func $fn1))
(export "export2" (func $fn2))