diff --git a/lib/fs.js b/lib/fs.js index b3d684a61e..ea668688fe 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 bd38716674..04a7f13e21 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');