1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:57:35 +00:00

LibWeb: Implement ErrorEvent

This will be used by the new EventTarget to check if it needs to do
special error event handling. Currently it isn't used for anything
else.
This commit is contained in:
Luke Wilde 2021-10-14 16:53:39 +01:00 committed by Andreas Kling
parent dc42ca37bd
commit 11eedc309a
5 changed files with 98 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#import <DOM/Event.idl>
[Exposed=(Window,Worker)]
interface ErrorEvent : Event {
constructor(DOMString type, optional ErrorEventInit eventInitDict = {});
readonly attribute DOMString message;
readonly attribute USVString filename;
readonly attribute unsigned long lineno;
readonly attribute unsigned long colno;
readonly attribute any error;
};
dictionary ErrorEventInit : EventInit {
DOMString message = "";
USVString filename = "";
unsigned long lineno = 0;
unsigned long colno = 0;
any error = null;
};