mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
domain: speed up domain.create
Use `EventEmitter.call` instead of `EventEmitter.apply` because of performance.
This commit is contained in:
@@ -70,7 +70,7 @@ function uncaughtHandler(er) {
|
||||
inherits(Domain, EventEmitter);
|
||||
|
||||
function Domain() {
|
||||
EventEmitter.apply(this);
|
||||
EventEmitter.call(this);
|
||||
|
||||
this.members = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user