Bug 1654574 - Enable wasm in safe mode. r=luke
authorJason Orendorff <jason.orendorff@gmail.com>
Thu, 23 Jul 2020 15:10:17 +0000
changeset 541839 cc9fae64b426dd40d0d720035b26f3b0c4dc1fdf
parent 541838 ff32132cb49015052ed879589404eaa741f7b6c5
child 541840 bbb5b4faa462f79123a7bf2315238035359571f3
push id37633
push userccoroiu@mozilla.com
push dateFri, 24 Jul 2020 09:32:06 +0000
treeherdermozilla-central@141543043270 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke
bugs1654574
milestone80.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1654574 - Enable wasm in safe mode. r=luke Differential Revision: https://phabricator.services.mozilla.com/D84570
js/public/ContextOptions.h
--- a/js/public/ContextOptions.h
+++ b/js/public/ContextOptions.h
@@ -211,22 +211,17 @@ class JS_PUBLIC_API ContextOptions {
 #endif  // JS_ENABLE_SMOOSH
 
   bool fuzzing() const { return fuzzing_; }
   // Defined out-of-line because it depends on a compile-time option
   ContextOptions& setFuzzing(bool flag);
 
   void disableOptionsForSafeMode() {
     setAsmJS(false);
-    setWasm(false);
     setWasmBaseline(false);
-    setWasmIon(false);
-    setWasmGc(false);
-    setWasmMultiValue(false);
-    setWasmSimd(false);
   }
 
  private:
   bool asmJS_ : 1;
   bool wasm_ : 1;
   bool wasmForTrustedPrinciples_ : 1;
   bool wasmVerbose_ : 1;
   bool wasmBaseline_ : 1;