mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
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:
committed by
Andreas Kling
parent
05b4676917
commit
6ac018bcb6
Notes:
github-actions[bot]
2024-12-02 23:20:42 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/6ac018bcb6d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2702 Reviewed-by: https://github.com/gmta ✅
@@ -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.
|
||||
Reference in New Issue
Block a user