summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-05-13 12:43:20 -0500
committerBen Smith <binji@chromium.org>2019-05-13 10:43:20 -0700
commitc65a5319441a86109f2c4f9cdc1d626e89875c4f (patch)
tree352ad604b6747c36ff1f49eb461ee80068390623 /src
parent0af114943e38a0c0a4ccb0b49b4a8fb07d1bd056 (diff)
downloadwabt-c65a5319441a86109f2c4f9cdc1d626e89875c4f.tar.gz
wabt-c65a5319441a86109f2c4f9cdc1d626e89875c4f.tar.bz2
wabt-c65a5319441a86109f2c4f9cdc1d626e89875c4f.zip
Update typechecking for `table.grow` (#1079)
I think the previous order was implemented in Firefox at some point but it looks like it's since been updated so reversing the order of operands in `table.grow` matches what the proposed spec text currently says.
Diffstat (limited to 'src')
-rw-r--r--src/type-checker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type-checker.cc b/src/type-checker.cc
index 6bd1a60d..581c035a 100644
--- a/src/type-checker.cc
+++ b/src/type-checker.cc
@@ -641,7 +641,7 @@ Result TypeChecker::OnTableSet(Index segment) {
}
Result TypeChecker::OnTableGrow(Index segment) {
- Result result = PopAndCheck2Types(Type::I32, Type::Anyref, "table.grow");
+ Result result = PopAndCheck2Types(Type::Anyref, Type::I32, "table.grow");
PushType(Type::I32);
return result;
}