event-target-shim icon indicating copy to clipboard operation
event-target-shim copied to clipboard

Can't console.log() event instance in Node

Open justinfagnani opened this issue 2 years ago • 1 comments

If you try to log an event instance in Node, an error is thrown: Value of "this" must be of type EventTarget

repro:

import {Event as EventShim} from 'event-target-shim';
const event = new EventShim('test');
console.log(event);

justinfagnani avatar Nov 21 '21 01:11 justinfagnani

Same issue here.

naveenkumar-kv avatar Aug 21 '23 08:08 naveenkumar-kv