summaryrefslogtreecommitdiff
path: root/test/example/c-api-kitchen-sink.c
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2021-06-21 21:24:11 -0700
committerGitHub <noreply@github.com>2021-06-21 21:24:11 -0700
commite773dfd026ff939e9f4cb91816863bdc5292ff4e (patch)
tree879d2311861c8aa41e6d5e688a66c394042fe443 /test/example/c-api-kitchen-sink.c
parent9fc276298b36080658236f0bc93d94cdf774492c (diff)
downloadbinaryen-e773dfd026ff939e9f4cb91816863bdc5292ff4e.tar.gz
binaryen-e773dfd026ff939e9f4cb91816863bdc5292ff4e.tar.bz2
binaryen-e773dfd026ff939e9f4cb91816863bdc5292ff4e.zip
[EH] Make tag's attribute encoding detail (#3947)
This removes `attribute` field from `Tag` class, making the reserved and unused field known only to binary encoder and decoder. This also removes the `attribute` parameter from `makeTag` and `addTag` methods in wasm-builder.h, C API, and Binaryen JS API. Suggested in https://github.com/WebAssembly/binaryen/pull/3946#pullrequestreview-687756523.
Diffstat (limited to 'test/example/c-api-kitchen-sink.c')
-rw-r--r--test/example/c-api-kitchen-sink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c
index cb2f29c77..a13d71cdb 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -317,7 +317,7 @@ void test_core() {
BinaryenExpressionRef i31refExpr = BinaryenI31New(module, makeInt32(module, 1));
// Tags
- BinaryenAddTag(module, "a-tag", 0, BinaryenTypeInt32(), BinaryenTypeNone());
+ BinaryenAddTag(module, "a-tag", BinaryenTypeInt32(), BinaryenTypeNone());
BinaryenAddTable(module, "tab", 0, 100);