Skip to content

Commit cf46ca7

Browse files
Daven Casiajasnell
authored andcommitted
domain: converted anonymous to named function
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>
1 parent c798adc commit cf46ca7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/domain.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class Domain extends EventEmitter {
184184

185185
exports.Domain = Domain;
186186

187-
exports.create = exports.createDomain = function() {
187+
exports.create = exports.createDomain = function createDomain() {
188188
return new Domain();
189189
};
190190

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

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

199199
if (!util.isPrimitive(er)) {
@@ -428,7 +428,7 @@ EventEmitter.init = function() {
428428
};
429429

430430
const eventEmit = EventEmitter.prototype.emit;
431-
EventEmitter.prototype.emit = function emit(...args) {
431+
EventEmitter.prototype.emit = function(...args) {
432432
const domain = this.domain;
433433

434434
const type = args[0];

0 commit comments

Comments
 (0)