Bug 1520931 - Fix EXIT_FAILURE typos in JS shell main() (r=me)
authorLuke Wagner <luke@mozilla.com>
Tue, 12 Feb 2019 09:33:51 -0600
changeset 458707 9aca1805a96a
parent 458706 d09e3e887cdf
child 458708 17988b9f30d4
push id35546
push userrmaries@mozilla.com
push dateWed, 13 Feb 2019 04:27:59 +0000
treeherdermozilla-central@636d2c00234d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1520931
milestone67.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 1520931 - Fix EXIT_FAILURE typos in JS shell main() (r=me)
js/src/shell/js.cpp
--- a/js/src/shell/js.cpp
+++ b/js/src/shell/js.cpp
@@ -10809,29 +10809,29 @@ int main(int argc, char** argv, char** e
    */
   OOM_printAllocationCount = op.getBoolOption('O');
 #endif
 
 #if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64)
   if (op.getBoolOption("no-sse3")) {
     js::jit::CPUInfo::SetSSE3Disabled();
     if (!sCompilerProcessFlags.append("--no-sse3")) {
-      return EXIT_SUCCESS;
+      return EXIT_FAILURE;
     }
   }
   if (op.getBoolOption("no-sse4")) {
     js::jit::CPUInfo::SetSSE4Disabled();
     if (!sCompilerProcessFlags.append("--no-sse4")) {
-      return EXIT_SUCCESS;
+      return EXIT_FAILURE;
     }
   }
   if (op.getBoolOption("enable-avx")) {
     js::jit::CPUInfo::SetAVXEnabled();
     if (!sCompilerProcessFlags.append("--enable-avx")) {
-      return EXIT_SUCCESS;
+      return EXIT_FAILURE;
     }
   }
 #endif
 
   if (op.getBoolOption("no-threads")) {
     js::DisableExtraThreads();
   }