concept domain in category javascript

This is an excerpt from Manning's book Node.js in Practice.
Node’s core modules are mostly written in JavaScript. That means if there’s anything you either don’t understand or want to understand in more detail, then you can read Node’s source code. This includes features like networking, high-level file system operations, the module system, and streams. It also includes Node-specific features like running multiple Node processes at once with the cluster module, and wrapping sections of code in event-based error handlers, known as domains.
When inheriting from EventEmitter, it’s a good idea to use events.EventEmitter .call(this) in your constructor to run EventEmitter’s constructor. The reason for this is because it’ll attach the instance to a domain if domains are being used. To learn more about domains, see technique 22.
Although most events are treated equally, error events are a special case and are therefore treated differently. This section looks at two ways of handling errors: one attaches a listener to the error event, and the other uses domains to collect errors from groups of EventEmitter instances.