diff --git a/.gitignore b/.gitignore index c794f4b..45e7df2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules bower_components *~ +/logicnotes.js diff --git a/src/filesystem/interface.js b/src/filesystem/interface.js index cf8617d..175dab5 100644 --- a/src/filesystem/interface.js +++ b/src/filesystem/interface.js @@ -22,7 +22,7 @@ define(function(require) { var STDIN = require('src/constants').STDIN; var STDOUT = require('src/constants').STDOUT; var STDERR = require('src/constants').STDERR; - var FD = require('src/constants').FIRST_DESCRIPTOR; + var FIRST_DESCRIPTOR = require('src/constants').FIRST_DESCRIPTOR; // The core fs operations live on impl var impl = require('src/filesystem/implementation'); @@ -87,7 +87,7 @@ define(function(require) { // Safely expose the list of open files and file // descriptor management functions var openFiles = {}; - var nextDescriptor = 3; + var nextDescriptor = FIRST_DESCRIPTOR; Object.defineProperty(this, "openFiles", { get: function() { return openFiles; } });