summaryrefslogtreecommitdiff
path: root/test/kitchen_sink.wast
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2016-10-07 10:57:50 -0700
committerGitHub <noreply@github.com>2016-10-07 10:57:50 -0700
commitcbeb4c9f9ba7c8f50fcb938ef668842bbd5dacb4 (patch)
tree71af10f36b62851530c686d47a361e108f3316e3 /test/kitchen_sink.wast
parentcaf0a3db20bbc03d2261b2c5a112bc0eddd3ca73 (diff)
downloadbinaryen-cbeb4c9f9ba7c8f50fcb938ef668842bbd5dacb4.tar.gz
binaryen-cbeb4c9f9ba7c8f50fcb938ef668842bbd5dacb4.tar.bz2
binaryen-cbeb4c9f9ba7c8f50fcb938ef668842bbd5dacb4.zip
Change print order of top-level module components (#751)
In wast files, the spec and WABT require imports to appear before any non-import definitions (see also https://github.com/WebAssembly/wabt/issues/152). This patch re-orders visitModule in the wast printer to meet this requirement, and more or less match the order of the binary sections. Also remove extraneous whitespace around table definitions.
Diffstat (limited to 'test/kitchen_sink.wast')
-rw-r--r--test/kitchen_sink.wast2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/kitchen_sink.wast b/test/kitchen_sink.wast
index b3927ef4c..7598ee989 100644
--- a/test/kitchen_sink.wast
+++ b/test/kitchen_sink.wast
@@ -1,7 +1,7 @@
(module
+ (type $0 (func (result i32)))
(memory $0 4096 4096)
(data (i32.const 1026) "\14\00")
- (type $0 (func (result i32)))
(func $kitchensink (type $0) (result i32)
(block $block0 i32
(drop