Bug 1421064 - Do not fail if options do not exist r=sfink
authorValerie R Young <valerie@bocoup.com>
Tue, 28 Nov 2017 07:21:00 -0800
changeset 394580 0a559782a53a0d27424d3ec0c7f8a942ead597d7
parent 394579 7bb18504d4870a7817d70765d1d076678ee3607f
child 394581 4e6520ae17e2f8780c2d8cb938dde5391f71abfa
child 394585 3bfd43a13286f2a7b1e929f592ffd94f59c392ed
child 394750 42f7090fc804dedbef50d8250f78a1055ee86ac9
push id33008
push useraciure@mozilla.com
push dateSat, 02 Dec 2017 09:47:20 +0000
treeherdermozilla-central@0a559782a53a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs1421064
milestone59.0a1
first release with
nightly linux32
0a559782a53a / 59.0a1 / 20171202100103 / files
nightly linux64
0a559782a53a / 59.0a1 / 20171202100103 / files
nightly mac
0a559782a53a / 59.0a1 / 20171202100103 / files
nightly win32
0a559782a53a / 59.0a1 / 20171202100103 / files
nightly win64
0a559782a53a / 59.0a1 / 20171202100103 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1421064 - Do not fail if options do not exist r=sfink
js/src/tests/shell.js
--- a/js/src/tests/shell.js
+++ b/js/src/tests/shell.js
@@ -91,17 +91,17 @@
       last = i + delimiter.length;
     }
   }
 
   function shellOptionsClear() {
     assertEq(runningInBrowser, false, "Only called when running in the shell.");
 
     // Return early if no options are set.
-    var currentOptions = options();
+    var currentOptions = options ? options() : "";
     if (currentOptions === "")
       return;
 
     // Turn off current settings.
     var optionNames = StringSplit(currentOptions, ",");
     for (var i = 0; i < optionNames.length; i++) {
       options(optionNames[i]);
     }