Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding more flags.

  • Loading branch information...
commit 25ded3fc378dc494a4b1ca7bb42333cf9cd2124f 1 parent 8916ce8
@Gozala authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/fs.js
View
6 lib/fs.js
@@ -36,11 +36,11 @@ const { createOutputTransport, createInputTransport } =
"nsIStreamTransportService")();
-const FILE_PERMISSION = parseInt("0666", 8);
-const DEFER_OPEN = Ci.nsIFileInputStream.DEFER_OPEN || null;
-
+const { REOPEN_ON_REWIND, DEFER_OPEN } = Ci.nsIFileInputStream;
const { DIRECTORY_TYPE, NORMAL_FILE_TYPE } = Ci.nsIFile;
+const { NS_SEEK_SET, NS_SEEK_CUR, NS_SEEK_END } = Ci.nsISeekableStream;
+const FILE_PERMISSION = parseInt("0666", 8);
const PR_UINT32_MAX = 0xfffffff;
// Values taken from:
// http://mxr.mozilla.org/mozilla-central/source/nsprpub/pr/include/prio.h#615
Please sign in to comment.
Something went wrong with that request. Please try again.