Skip to content

Commit

Permalink
test: update function keywords to fat arrows
Browse files Browse the repository at this point in the history
Updated all the function keywords to fat arrow implementations in
test/parallel/test-event-emitter-no-error-provided-to-error-event.js

PR-URL: #23493
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
RobertMonks authored and MylesBorins committed Oct 30, 2018
1 parent e9f1746 commit fd5290e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const domain = require('domain');
const e = new events.EventEmitter();
const d = domain.create();
d.add(e);
d.on('error', common.mustCall(function(er) {
d.on('error', common.mustCall((er) => {
assert(er instanceof Error, 'error created');
}));
e.emit('error');
Expand All @@ -39,7 +39,7 @@ for (const arg of [false, null, undefined]) {
const e = new events.EventEmitter();
const d = domain.create();
d.add(e);
d.on('error', common.mustCall(function(er) {
d.on('error', common.mustCall((er) => {
assert(er instanceof Error, 'error created');
}));
e.emit('error', arg);
Expand All @@ -49,7 +49,7 @@ for (const arg of [42, 'fortytwo', true]) {
const e = new events.EventEmitter();
const d = domain.create();
d.add(e);
d.on('error', common.mustCall(function(er) {
d.on('error', common.mustCall((er) => {
assert.strictEqual(er, arg);
}));
e.emit('error', arg);
Expand Down

0 comments on commit fd5290e

Please sign in to comment.