events: improve `Event` compatibility
This fixes the Event
constructor to improve Event Web API
compatibility.
The test added was written by referring to wpt@dom/events/Event-constructors.any.js
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com