Skip to content

Commit 8ac4425

Browse files
committed
fixup! lint
1 parent 89eaf9c commit 8ac4425

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/event_target.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ function emitUnhandledRejectionOrErr(that, err, event) {
447447

448448
function defineEventHandler(emitter, name) {
449449
// 8.1.5.1 Event handlers - basically `on[eventName]` attributes
450-
let eventHandlerValue = undefined;
450+
let eventHandlerValue;
451451
Object.defineProperty(emitter, `on${name}`, {
452452
get() {
453453
return eventHandlerValue;

test/parallel/test-eventtarget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ ok(EventTarget);
466466
{
467467
const target = new EventTarget();
468468
defineEventHandler(target, 'foo');
469-
let fn = common.mustNotCall(() => count++);
469+
const fn = common.mustNotCall();
470470
target.onfoo = fn;
471471
strictEqual(target.onfoo, fn);
472472
target.onfoo = null;

0 commit comments

Comments
 (0)