LibWeb/HTML: Default ErrorEvent error to undefined

This was a change in the HTML spec, see:

032523196
This commit is contained in:
Shannon Booth 2025-01-05 20:21:22 +13:00 committed by Andreas Kling
commit 8214371ad5
Notes: github-actions[bot] 2025-01-05 12:37:18 +00:00
4 changed files with 73 additions and 2 deletions

View file

@ -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