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 208709 939cf8134947cc9d5061ec022ce9f9985bdbd160
parent 208708 b1b5b6c55e8227afeebf373bf8279c64ce26f743
child 208710 1b532d05bccf46194922ec52acf91e78bcdd0a04
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersgavin
bugs1073912
milestone35.0a1
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) {