Call EventEmitter in TreeWalker constructor.