LibWeb: Fix crash accessing 'empty' PromiseRejectionEvent reason

The 'reason' was getting initialized to 'empty' state when not
provided through the constructor, which results in a crash when
accessed through throw_dom_exception_if_needed in the generated
IDL getter.
This commit is contained in:
Shannon Booth
2024-12-03 03:05:15 +13:00
committed by Andreas Kling
parent 05b4676917
commit 6ac018bcb6
Notes: github-actions[bot] 2024-12-02 23:20:42 +00:00
3 changed files with 62 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
Summary
Harness status: OK
Rerun
Found 1 tests
1 Pass
Details
Result Test Name MessagePass This tests the constructor for the PromiseRejectionEvent DOM class.