From 7b4370e5f8d3a6faf9fc42c48ddd7a2137bea022 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 12 Oct 2011 16:18:42 -0700 Subject: [PATCH] Fix test/pummel/test-watch-file.js --- lib/fs.js | 3 ++- test/pummel/test-watch-file.js | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index b3d684a..ea66868 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -686,7 +686,8 @@ StatWatcher.prototype.stop = function() { var statWatchers = {}; function inStatWatchers(filename) { - return Object.prototype.hasOwnProperty.call(statWatchers, filename); + return Object.prototype.hasOwnProperty.call(statWatchers, filename) && + statWatchers[filename]; } diff --git a/test/pummel/test-watch-file.js b/test/pummel/test-watch-file.js index bd38716..04a7f13 100644 --- a/test/pummel/test-watch-file.js +++ b/test/pummel/test-watch-file.js @@ -19,9 +19,6 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -// libuv-broken - - var common = require('../common'); var assert = require('assert'); -- 2.7.4