Skip to content

Commit

Permalink
fixup! lint
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamingr committed Jun 6, 2020
1 parent 89eaf9c commit 8ac4425
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/internal/event_target.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ function emitUnhandledRejectionOrErr(that, err, event) {

function defineEventHandler(emitter, name) {
// 8.1.5.1 Event handlers - basically `on[eventName]` attributes
let eventHandlerValue = undefined;
let eventHandlerValue;
Object.defineProperty(emitter, `on${name}`, {
get() {
return eventHandlerValue;
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-eventtarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ ok(EventTarget);
{
const target = new EventTarget();
defineEventHandler(target, 'foo');
let fn = common.mustNotCall(() => count++);
const fn = common.mustNotCall();
target.onfoo = fn;
strictEqual(target.onfoo, fn);
target.onfoo = null;
Expand Down

0 comments on commit 8ac4425

Please sign in to comment.