summaryrefslogtreecommitdiff
path: root/test/binaryen.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-11-01 13:34:53 -0700
committerGitHub <noreply@github.com>2018-11-01 13:34:53 -0700
commit77c66027f0dcbd7160f78c5de4943372836ab142 (patch)
tree582c3f937247c14b773e9364d5a901d9db9bcfdd /test/binaryen.js
parent7d3ddd09d5f68945160cda3f3749a217a13928bf (diff)
downloadbinaryen-77c66027f0dcbd7160f78c5de4943372836ab142.tar.gz
binaryen-77c66027f0dcbd7160f78c5de4943372836ab142.tar.bz2
binaryen-77c66027f0dcbd7160f78c5de4943372836ab142.zip
Emit imports before defined things in text format (#1715)
That is the correct order in the text format, wabt errors otherwise. See AssemblyScript/assemblyscript#310
Diffstat (limited to 'test/binaryen.js')
-rw-r--r--test/binaryen.js/kitchen-sink.js.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/binaryen.js/kitchen-sink.js.txt b/test/binaryen.js/kitchen-sink.js.txt
index da8f22989..06894d137 100644
--- a/test/binaryen.js/kitchen-sink.js.txt
+++ b/test/binaryen.js/kitchen-sink.js.txt
@@ -46,11 +46,11 @@ getExpressionInfo(f64.const)={"id":14,"type":4,"value":9.5}
(type $fiF (func (param i32 f64) (result f32)))
(type $v (func))
(type $3 (func))
+ (import "module" "base" (func $an-imported (param i32 f64) (result f32)))
(memory $0 1 256)
(data (i32.const 10) "hello, world")
- (table 1 anyfunc)
+ (table $0 1 anyfunc)
(elem (i32.const 0) "$kitchen()sinker")
- (import "module" "base" (func $an-imported (param i32 f64) (result f32)))
(export "kitchen_sinker" (func "$kitchen()sinker"))
(export "mem" (memory $0))
(start $starter)
@@ -1502,11 +1502,11 @@ getExpressionInfo(f64.const)={"id":14,"type":4,"value":9.5}
(type $fiF (func (param i32 f64) (result f32)))
(type $v (func))
(type $3 (func))
+ (import "module" "base" (func $an-imported (param i32 f64) (result f32)))
(memory $0 1 256)
(data (i32.const 10) "hello, world")
- (table 1 anyfunc)
+ (table $0 1 anyfunc)
(elem (i32.const 0) "$kitchen()sinker")
- (import "module" "base" (func $an-imported (param i32 f64) (result f32)))
(export "kitchen_sinker" (func "$kitchen()sinker"))
(export "mem" (memory $0))
(start $starter)