From 382e59afd3d5aa04b8448e9fa218b50c3896c7f5 Mon Sep 17 00:00:00 2001 From: yoavgurevich Date: Wed, 14 May 2014 12:19:44 -0400 Subject: [PATCH] Added line note fixes to issue 62 logic in interface.js --- .gitignore | 1 + src/filesystem/interface.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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; } });