From cf46ca76ff626f806f32fd9da28a7643b892235a Mon Sep 17 00:00:00 2001 From: Daven Casia Date: Fri, 13 Apr 2018 18:33:30 -0600 Subject: [PATCH] domain: converted anonymous to named function PR-URL: https://github.com/nodejs/node/pull/20021 Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Matteo Collina --- lib/domain.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/domain.js b/lib/domain.js index 2515d996497218..beacdc89104411 100644 --- a/lib/domain.js +++ b/lib/domain.js @@ -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(); }; @@ -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)) { @@ -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];