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/js/binaryen.js-post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/js/binaryen.js-post.js') diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js index d7c1878fd..7f5467312 100644 --- a/src/js/binaryen.js-post.js +++ b/src/js/binaryen.js-post.js @@ -121,7 +121,7 @@ function initializeConstants() { 'TailCall', 'ReferenceTypes', 'Multivalue', - 'Anyref', + 'GC', 'All' ].forEach(name => { Module['Features'][name] = Module['_BinaryenFeature' + name](); -- cgit v1.2.3