mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
LibWeb/HTML: Default ErrorEvent error to undefined
This was a change in the HTML spec, see:
032523196
This commit is contained in:
parent
cb9e3d5c9b
commit
8214371ad5
Notes:
github-actions[bot]
2025-01-05 12:37:18 +00:00
Author: https://github.com/shannonbooth
Commit: 8214371ad5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3148
4 changed files with 73 additions and 2 deletions
|
@ -17,7 +17,7 @@ struct ErrorEventInit : public DOM::EventInit {
|
|||
String filename;
|
||||
u32 lineno { 0 };
|
||||
u32 colno { 0 };
|
||||
JS::Value error { JS::js_null() };
|
||||
JS::Value error { JS::js_undefined() };
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#errorevent
|
||||
|
|
|
@ -12,10 +12,11 @@ interface ErrorEvent : Event {
|
|||
readonly attribute any error;
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/#erroreventinit
|
||||
dictionary ErrorEventInit : EventInit {
|
||||
DOMString message = "";
|
||||
USVString filename = "";
|
||||
unsigned long lineno = 0;
|
||||
unsigned long colno = 0;
|
||||
any error = null;
|
||||
any error;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue