Bug 899857 - Dummy to support new mozharness changes on b2g18/esr17. r=ted, a=test-only
authorMihnea Dobrescu-Balaur <mihneadb@gmail.com>
Tue, 06 Aug 2013 15:44:11 -0400
changeset 119833 179f60ef0916f8b8b7ce8d0bb66f0343037fa1b6
parent 119832 28b9d4af74789e88e31f00158be195f80995b6b6
child 119834 11bb1b0eefff346be3fb623551c553710584d6d6
push id1018
push userryanvm@gmail.com
push dateTue, 06 Aug 2013 19:44:17 +0000
reviewersted, test-only
bugs899857
milestone18.1
Bug 899857 - Dummy to support new mozharness changes on b2g18/esr17. r=ted, a=test-only
js/xpconnect/shell/xpcshell.cpp
--- a/js/xpconnect/shell/xpcshell.cpp
+++ b/js/xpconnect/shell/xpcshell.cpp
@@ -1249,16 +1249,22 @@ ProcessArgs(JSContext *cx, JSObject *obj
             isInteractive = false;
             break;
         case 'm':
             JS_ToggleOptions(cx, JSOPTION_METHODJIT);
             break;
         case 'n':
             JS_ToggleOptions(cx, JSOPTION_TYPE_INFERENCE);
             break;
+        case 'p':
+            // dummy to support new mozharness changes on ESR17 & B2G18
+            if (++i == argc) {
+                return usage();
+            }
+            break;
         default:
             return usage();
         }
     }
 
     if (filename || isInteractive)
         Process(cx, obj, filename, forceTTY);
     return gExitCode;