Skip to content

Commit

Permalink
fixup! use kEmptyObject
Browse files Browse the repository at this point in the history
Signed-off-by: Daeyeon Jeong [email protected]
  • Loading branch information
daeyeon committed Jun 17, 2022
1 parent 1018e50 commit 5d8b641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/event_target.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class Event {
* composed?: boolean,
* }} [options]
*/
constructor(type, options = {}) {
constructor(type, options = kEmptyObject) {
if (arguments.length === 0)
throw new ERR_MISSING_ARGS('type');
validateObject(options, 'options');
Expand Down

0 comments on commit 5d8b641

Please sign in to comment.