From e1d74ef2acdd88f06b9e58f91f30bb56b9a26fe8 Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Thu, 17 Sep 2020 07:46:40 +0200 Subject: Add GC feature flag (#3135) Adds the `--enable-gc` feature flag, so far enabling the `anyref` type incl. subtyping, and removes the temporary `--enable-anyref` feature flag that it replaces. --- src/wasm/wasm-validator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wasm/wasm-validator.cpp') diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp index 80c54abed..15fb66926 100644 --- a/src/wasm/wasm-validator.cpp +++ b/src/wasm/wasm-validator.cpp @@ -2478,10 +2478,10 @@ static void validateModule(Module& module, ValidationInfo& info) { } static void validateFeatures(Module& module, ValidationInfo& info) { - if (module.features.hasAnyref()) { + if (module.features.hasGC()) { info.shouldBeTrue(module.features.hasReferenceTypes(), module.features, - "--enable-anyref requires --enable-reference-types"); + "--enable-gc requires --enable-reference-types"); } if (module.features.hasExceptionHandling()) { // implies exnref info.shouldBeTrue( -- cgit v1.2.3