diff options
author | Jay Phelps <hello@jayphelps.com> | 2020-06-10 16:34:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 13:34:56 -0700 |
commit | f21eb572dd4a30c27dfad813249c3d715b4d1bca (patch) | |
tree | 2e1a2d9020a88584625e5c51dc691193037685cf /test/example | |
parent | 6ec03c5c0c664660a88fdb61ac1d3bd1f8b14771 (diff) | |
download | binaryen-f21eb572dd4a30c27dfad813249c3d715b4d1bca.tar.gz binaryen-f21eb572dd4a30c27dfad813249c3d715b4d1bca.tar.bz2 binaryen-f21eb572dd4a30c27dfad813249c3d715b4d1bca.zip |
Rename anyref to externref to match proposal change (#2900)
anyref future semantics were changed to only represent opaque host values, and thus renamed to externref.
[Chromium](https://bugs.chromium.org/p/v8/issues/detail?id=7748#c360) was just updated to today (not yet released). I couldn't find a Mozilla bugzilla ticket mentioning externref so I don't immediately know if they've updated yet.
https://github.com/WebAssembly/reference-types/pull/87
Diffstat (limited to 'test/example')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 12 | ||||
-rw-r--r-- | test/example/c-api-kitchen-sink.txt | 4 | ||||
-rw-r--r-- | test/example/c-api-kitchen-sink.txt.txt | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index 1f6ffc9fc..b1dbae7d5 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -199,11 +199,11 @@ void test_types() { BinaryenTypeExpand(funcref, &valueType); assert(valueType == funcref); - BinaryenType anyref = BinaryenTypeAnyref(); - printf(" // BinaryenTypeAnyref: %d\n", anyref); - assert(BinaryenTypeArity(anyref) == 1); - BinaryenTypeExpand(anyref, &valueType); - assert(valueType == anyref); + BinaryenType externref = BinaryenTypeExternref(); + printf(" // BinaryenTypeExternref: %d\n", externref); + assert(BinaryenTypeArity(externref) == 1); + BinaryenTypeExpand(externref, &valueType); + assert(valueType == externref); BinaryenType nullref = BinaryenTypeNullref(); printf(" // BinaryenTypeNullref: %d\n", nullref); @@ -747,7 +747,7 @@ void test_core() { BinaryenPop(module, BinaryenTypeFloat32()), BinaryenPop(module, BinaryenTypeFloat64()), BinaryenPop(module, BinaryenTypeFuncref()), - BinaryenPop(module, BinaryenTypeAnyref()), + BinaryenPop(module, BinaryenTypeExternref()), BinaryenPop(module, BinaryenTypeNullref()), BinaryenPop(module, BinaryenTypeExnref()), BinaryenPop(module, BinaryenTypeFuncref()), diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt index ff9256fda..b0aae7f3b 100644 --- a/test/example/c-api-kitchen-sink.txt +++ b/test/example/c-api-kitchen-sink.txt @@ -6,7 +6,7 @@ // BinaryenTypeFloat64: 5 // BinaryenTypeVec128: 6 // BinaryenTypeFuncref: 7 - // BinaryenTypeAnyref: 8 + // BinaryenTypeExternref: 8 // BinaryenTypeNullref: 9 // BinaryenTypeExnref: 10 // BinaryenTypeAuto: -1 @@ -1843,7 +1843,7 @@ BinaryenFeatureAll: 1023 (funcref.pop) ) (drop - (anyref.pop) + (externref.pop) ) (drop (nullref.pop) diff --git a/test/example/c-api-kitchen-sink.txt.txt b/test/example/c-api-kitchen-sink.txt.txt index 44ac3320a..d3cc32e8d 100644 --- a/test/example/c-api-kitchen-sink.txt.txt +++ b/test/example/c-api-kitchen-sink.txt.txt @@ -1739,7 +1739,7 @@ (funcref.pop) ) (push - (anyref.pop) + (externref.pop) ) (push (nullref.pop) |