summaryrefslogtreecommitdiff
path: root/test/binaryen.js/expressions.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js/expressions.js')
-rw-r--r--test/binaryen.js/expressions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/binaryen.js/expressions.js b/test/binaryen.js/expressions.js
index c7c45a08a..bd681f86d 100644
--- a/test/binaryen.js/expressions.js
+++ b/test/binaryen.js/expressions.js
@@ -109,7 +109,7 @@ console.log("# If");
assert(
theIf.toText()
==
- "(if (result i32)\n (i32.const 4)\n (i32.const 5)\n (i32.const 6)\n)\n"
+ "(if (result i32)\n (i32.const 4)\n (then\n (i32.const 5)\n )\n (else\n (i32.const 6)\n )\n)\n"
);
theIf.ifFalse = null;
@@ -118,7 +118,7 @@ console.log("# If");
assert(
theIf.toText()
==
- "(if (result i32)\n (i32.const 4)\n (i32.const 5)\n)\n"
+ "(if (result i32)\n (i32.const 4)\n (then\n (i32.const 5)\n )\n)\n"
);
module.dispose();