зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1330791 - Enable the no-octal rule for eslint and fix the associated error. r=markh
MozReview-Commit-ID: LLYKmP7HOei --HG-- extra : rebase_source : f10d3c6fe0816cea4054132833736182f60ac555
This commit is contained in:
Родитель
16f3cc90b4
Коммит
40ff88887b
|
@ -15,6 +15,5 @@ module.exports = {
|
|||
"no-func-assign": "warn",
|
||||
"no-native-reassign": "warn",
|
||||
"no-nested-ternary": "warn",
|
||||
"no-octal": "warn",
|
||||
}
|
||||
};
|
||||
|
|
|
@ -41,7 +41,7 @@ var Logger = {
|
|||
// If the file already exists, append it, otherwise create it.
|
||||
var fileflags = exists ? 0x02 | 0x08 | 0x10 : 0x02 | 0x08 | 0x20;
|
||||
|
||||
this._foStream.init(this._file, fileflags, 0666, 0);
|
||||
this._foStream.init(this._file, fileflags, 0o666, 0);
|
||||
this._converter = Cc["@mozilla.org/intl/converter-output-stream;1"]
|
||||
.createInstance(Ci.nsIConverterOutputStream);
|
||||
this._converter.init(this._foStream, "UTF-8", 0, 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче