Bug 1207499 - Part 2: Remove use of expression closure from chrome/. r=bsmedberg
authorTooru Fujisawa <arai_a@mac.com>
Mon, 21 Sep 2015 02:35:31 +0900
changeset 265260 4cd9898b3410492f4f815faedfd64f322dd43ffb
parent 265259 3e6465169e400a805dcff9f91c0b494476cb0d36
child 265261 4c0f8e4b15c88dd05931efefe58c644e58eeb814
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)
reviewersbsmedberg
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 2: Remove use of expression closure from chrome/. r=bsmedberg
chrome/test/unit/test_no_remote_registration.js
--- a/chrome/test/unit/test_no_remote_registration.js
+++ b/chrome/test/unit/test_no_remote_registration.js
@@ -46,17 +46,17 @@ function ProtocolHandler(aScheme, aFlags
   this.scheme = aScheme;
   this.protocolFlags = aFlags;
   this.contractID = "@mozilla.org/network/protocol;1?name=" + aScheme;
 }
 
 ProtocolHandler.prototype =
 {
   defaultPort: -1,
-  allowPort: function() false,
+  allowPort: () => false,
   newURI: function(aSpec, aCharset, aBaseURI)
   {
     let uri = Cc["@mozilla.org/network/standard-url;1"].
               createInstance(Ci.nsIURI);
     uri.spec = aSpec;
     if (!uri.scheme) {
       // We got a partial uri, so let's resolve it with the base one
       uri.spec = aBaseURI.resolve(aSpec);