Bug 1207499 - Part 13: Remove use of expression closure from xpcom/. r=froydnj
authorTooru Fujisawa <arai_a@mac.com>
Wed, 23 Sep 2015 18:42:20 +0900
changeset 265271 056927c667aba841994c8fa970116c4e205007a4
parent 265270 73d2fd0abd3ff2a4fca39c6df3b38fc2cfacd2d3
child 265272 57ef7c720fda0524ecf4e212add44611fda9f0bc
push id65891
push userarai_a@mac.com
push dateWed, 30 Sep 2015 16:36:04 +0000
treeherdermozilla-inbound@10194aec7255 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1207499
milestone44.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 1207499 - Part 13: Remove use of expression closure from xpcom/. r=froydnj
xpcom/tests/unit/test_symlinks.js
--- a/xpcom/tests/unit/test_symlinks.js
+++ b/xpcom/tests/unit/test_symlinks.js
@@ -104,17 +104,19 @@ function setupTestDir(testDir, relative)
     makeSymLink(loop, LOOP_LINK, relative);
     do_check_true(false);
   }
   catch (e) {
   }
 }
 
 function createSpaces(dirs, files, links) {
-  function longest(a, b) a.length > b.length ? a : b;
+  function longest(a, b) {
+    return a.length > b.length ? a : b;
+  }
   return dirs.concat(files, links).reduce(longest, "").replace(/./g, " ");
 }
 
 function testSymLinks(testDir, relative) {
   setupTestDir(testDir, relative);
 
   const dirLinks   = [DIR_LINK, DIR_LINK_LINK];
   const fileLinks  = [FILE_LINK, FILE_LINK_LINK];