Bug 1090325 - Fix unconditional Symbol usage in a test, introduced by rev bff9837442af. r=Waldo.
authorJason Orendorff <jorendorff@mozilla.com>
Tue, 28 Oct 2014 10:50:16 -0500
changeset 213227 94cc70e64a90cb285e586080435699b7db940cdf
parent 213226 aa46e794d919716822068c37d673f48420da7c47
child 213228 339521504f276c1d4519bb46491ed350409e63e0
push id27745
push usercbook@mozilla.com
push dateFri, 31 Oct 2014 13:09:12 +0000
treeherdermozilla-central@6bd2071b373f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersWaldo
bugs1090325
milestone36.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 1090325 - Fix unconditional Symbol usage in a test, introduced by rev bff9837442af. r=Waldo.
dom/base/test/test_window_define_symbol.html
--- a/dom/base/test/test_window_define_symbol.html
+++ b/dom/base/test/test_window_define_symbol.html
@@ -11,15 +11,19 @@ https://bugzilla.mozilla.org/show_bug.cg
 </head>
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1082672">Mozilla Bug 1082672</a>
 <p id="display"></p>
 <div id="content" style="display: none">
 </div>
 <pre id="test">
 <script type="application/javascript">
-var sym = Symbol("ponies");
-Object.defineProperty(window, sym, {configurable: true, value: 3});
-is(window[sym], 3);
+if (typeof Symbol === "function") {
+  var sym = Symbol("ponies");
+  Object.defineProperty(window, sym, {configurable: true, value: 3});
+  is(window[sym], 3);
+} else {
+  ok(true, "no Symbols in this build");
+}
 </script>
 </pre>
 </body>
 </html>