Skip to content

Commit

Permalink
domain: converted anonymous to named function
Browse files Browse the repository at this point in the history
PR-URL: #20021
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
  • Loading branch information
Daven Casia authored and jasnell committed Apr 19, 2018
1 parent c798adc commit cf46ca7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class Domain extends EventEmitter {

exports.Domain = Domain;

exports.create = exports.createDomain = function() {
exports.create = exports.createDomain = function createDomain() {
return new Domain();
};

Expand All @@ -193,7 +193,7 @@ exports.active = null;
Domain.prototype.members = undefined;

// Called by process._fatalException in case an error was thrown.
Domain.prototype._errorHandler = function _errorHandler(er) {
Domain.prototype._errorHandler = function(er) {
var caught = false;

if (!util.isPrimitive(er)) {
Expand Down Expand Up @@ -428,7 +428,7 @@ EventEmitter.init = function() {
};

const eventEmit = EventEmitter.prototype.emit;
EventEmitter.prototype.emit = function emit(...args) {
EventEmitter.prototype.emit = function(...args) {
const domain = this.domain;

const type = args[0];
Expand Down

0 comments on commit cf46ca7

Please sign in to comment.