diff options
author | Sam Clegg <sbc@chromium.org> | 2021-10-13 09:52:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 16:52:25 +0000 |
commit | 30c1e983d30b33a8004b39fd60cbd64477a7956c (patch) | |
tree | cb17fc468d4fab92f961d49c54798051eea8c617 /src/feature.cc | |
parent | 081f6c21ef0998c21f7b33bc82cfa50d5a4ddfd2 (diff) | |
download | wabt-30c1e983d30b33a8004b39fd60cbd64477a7956c.tar.gz wabt-30c1e983d30b33a8004b39fd60cbd64477a7956c.tar.bz2 wabt-30c1e983d30b33a8004b39fd60cbd64477a7956c.zip |
Enable reference types by default (#1729)
This features was finished earlier this year:
https://github.com/WebAssembly/proposals/blob/master/finished-proposals.md
One thing to note is that the version of the spec tests we currently
have in third_party/testsuite doesn't have ref types merged yet so
this change disables ref types when running some of those tests. This
can be removed in a followup when we update the testsuite.
Diffstat (limited to 'src/feature.cc')
-rw-r--r-- | src/feature.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature.cc b/src/feature.cc index 9d7878e1..9a8cb7a4 100644 --- a/src/feature.cc +++ b/src/feature.cc @@ -48,8 +48,8 @@ void Features::UpdateDependencies() { } // Reference types requires bulk memory. - if (reference_types_enabled_) { - bulk_memory_enabled_ = true; + if (!bulk_memory_enabled_) { + reference_types_enabled_ = false; } } |