mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1129231 - Remove a couple JS octal constant warnings. r=fabrice
This has just the intended changes.
This commit is contained in:
parent
95217cc09f
commit
78039a64a3
@ -227,7 +227,7 @@ DirectoryProvider.prototype = {
|
||||
// subdir doesn't exist, and the parent is writable, so try to
|
||||
// create it. This can fail if a file named updates exists.
|
||||
try {
|
||||
dir.create(Ci.nsIFile.DIRECTORY_TYPE, 0770);
|
||||
dir.create(Ci.nsIFile.DIRECTORY_TYPE, parseInt('0770', 8));
|
||||
} catch (e) {
|
||||
// The create failed for some reason. We can't use it.
|
||||
log("Error: " + dir.path + " unable to create directory");
|
||||
|
@ -86,7 +86,7 @@ function getDir(name) {
|
||||
function writeFile(dirName, fileName, data) {
|
||||
let path = getDir(dirName);
|
||||
if (!path.exists())
|
||||
path.create(Ci.nsIFile.DIRECTORY_TYPE, 0700);
|
||||
path.create(Ci.nsIFile.DIRECTORY_TYPE, parseInt('0700', 8));
|
||||
path.append(fileName);
|
||||
var fs = Cc["@mozilla.org/network/file-output-stream;1"].
|
||||
createInstance(Ci.nsIFileOutputStream);
|
||||
|
Loading…
Reference in New Issue
Block a user