Bug 1073912 - Use 0o notation for octal literal. r=gavin
authorISHIKAWA, Chiaki <ishikawa@yk.rim.or.jp>
Mon, 29 Sep 2014 19:46:00 -0400
changeset 231924 939cf8134947cc9d5061ec022ce9f9985bdbd160
parent 231923 b1b5b6c55e8227afeebf373bf8279c64ce26f743
child 231925 1b532d05bccf46194922ec52acf91e78bcdd0a04
push id4187
push userbhearsum@mozilla.com
push dateFri, 28 Nov 2014 15:29:12 +0000
treeherdermozilla-beta@f23cc6a30c11 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs1073912
milestone35.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 1073912 - Use 0o notation for octal literal. r=gavin
toolkit/components/xulstore/XULStore.js
--- a/toolkit/components/xulstore/XULStore.js
+++ b/toolkit/components/xulstore/XULStore.js
@@ -139,17 +139,17 @@ XULStore.prototype = {
           this.setValue(docURI, id, attr.ValueUTF8, value.Value);
         }
       }
     }
   },
 
   readFile: function() {
     const MODE_RDONLY = 0x01;
-    const FILE_PERMS  = 0600;
+    const FILE_PERMS  = 0o600;
 
     let stream = Cc["@mozilla.org/network/file-input-stream;1"].
                  createInstance(Ci.nsIFileInputStream);
     let json = Cc["@mozilla.org/dom/json;1"].createInstance(Ci.nsIJSON);
     try {
       stream.init(this._storeFile, MODE_RDONLY, FILE_PERMS, 0);
       this._data = json.decodeFromStream(stream, stream.available());
     } catch(e) {