Bug 783676 - Export OS.Path. r=taras
authorDavid Rajchenbach-Teller <dteller@mozilla.com>
Fri, 24 Aug 2012 16:18:16 -0400
changeset 103343 c97a5e95e1aeb2d1d2ba14d9b32935d917279c68
parent 103342 1fd86c175258ec5235ae95212b6225033a78fa74
child 103344 f6ec0707def6e9348e563e84b2945fc74bdfc921
push id13945
push userryanvm@gmail.com
push dateFri, 24 Aug 2012 20:18:14 +0000
treeherdermozilla-inbound@b3c861bd1e2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstaras
bugs783676
milestone17.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 783676 - Export OS.Path. r=taras
toolkit/components/osfile/ospath_unix_back.jsm
toolkit/components/osfile/ospath_win_back.jsm
--- a/toolkit/components/osfile/ospath_unix_back.jsm
+++ b/toolkit/components/osfile/ospath_unix_back.jsm
@@ -124,9 +124,11 @@ if (typeof Components != "undefined") {
       */
      split: function split(path) {
        return {
          absolute: path.length && path[0] == "/",
          components: path.split("/")
        };
      }
    };
+
+   exports.OS.Path = exports.OS.Unix.Path;
 }(this));
--- a/toolkit/components/osfile/ospath_win_back.jsm
+++ b/toolkit/components/osfile/ospath_win_back.jsm
@@ -255,9 +255,11 @@ if (typeof Components != "undefined") {
 
     /**
      * Utility function: Remove any leading/trailing backslashes
      * from a string.
      */
     let trimBackslashes = function trimBackslashes(string) {
       return string.replace(/^\\+|\\+$/g,'');
     };
+
+   exports.OS.Path = exports.OS.Win.Path;
 }(this));