Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Fix test/pummel/test-watch-file.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Oct 12, 2011
1 parent 651b8a0 commit 7b4370e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/fs.js
Expand Up @@ -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];
}


Expand Down
3 changes: 0 additions & 3 deletions test/pummel/test-watch-file.js
Expand Up @@ -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');

Expand Down

0 comments on commit 7b4370e

Please sign in to comment.