function StatWatcher() { if (!(this instanceof StatWatcher)) return new StatWatcher(); this._delegate = new io.nodyn.fs.NodeStatWatcher(process._process); this._delegate.on('change', _onchange.bind(this)); Handle.call( this, this._delegate ); }
function FSEvent() { this._wrap = new io.nodyn.fs.FsEventWrap(process._process); this._wrap.on('change', _callback.bind(this)); Handle.call( this, this._wrap ); }