summaryrefslogtreecommitdiffstats
path: root/js/src/wasm/WasmCompile.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/wasm/WasmCompile.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/wasm/WasmCompile.cpp b/js/src/wasm/WasmCompile.cpp
index fbf4df3e71..516863744f 100644
--- a/js/src/wasm/WasmCompile.cpp
+++ b/js/src/wasm/WasmCompile.cpp
@@ -170,6 +170,16 @@ FeatureArgs FeatureArgs::build(JSContext* cx, const FeatureOptions& options) {
if (features.jsStringBuiltins) {
features.builtinModules.jsString = options.jsStringBuiltins;
}
+#ifdef ENABLE_WASM_GC
+ if (options.requireGC) {
+ features.gc = true;
+ }
+#endif
+#ifdef ENABLE_WASM_TAIL_CALLS
+ if (options.requireTailCalls) {
+ features.tailCalls = true;
+ }
+#endif
return features;
}