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.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/binaryen.js/expressions.js b/test/binaryen.js/expressions.js
index 688321675..1ffd45362 100644
--- a/test/binaryen.js/expressions.js
+++ b/test/binaryen.js/expressions.js
@@ -1585,14 +1585,14 @@ console.log("# Rethrow");
(function testRethrow() {
const module = new binaryen.Module();
- const theRethrow = binaryen.Rethrow(module.rethrow(0));
+ const theRethrow = binaryen.Rethrow(module.rethrow("l0"));
assert(theRethrow instanceof binaryen.Rethrow);
assert(theRethrow instanceof binaryen.Expression);
- assert(theRethrow.depth === 0);
+ assert(theRethrow.target === "l0");
assert(theRethrow.type === binaryen.unreachable);
- theRethrow.depth = 1
- assert(theRethrow.depth === 1);
+ theRethrow.target = "l1";
+ assert(theRethrow.target === "l1");
theRethrow.type = binaryen.f64;
theRethrow.finalize();
assert(theRethrow.type === binaryen.unreachable);
@@ -1601,7 +1601,7 @@ console.log("# Rethrow");
assert(
theRethrow.toText()
==
- "(rethrow 1)\n"
+ "(rethrow $l1)\n"
);
module.dispose();