event-target-shim
event-target-shim copied to clipboard
Can't console.log() event instance in Node
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);
Same issue here.