LibWeb: Update PromiseRejectionEvent's promise field to be object

This change was made in the HTML spec to address a comment from the
Gecko team for the Streams API in
a20ca78975

It also opens the door for some more Promise related refactors.
This commit is contained in:
Andrew Kaster 2024-10-25 12:36:25 -06:00 committed by Andrew Kaster
parent 352a66390f
commit 52c449293a
Notes: github-actions[bot] 2024-10-25 20:05:29 +00:00
3 changed files with 8 additions and 8 deletions

View file

@ -24,7 +24,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<PromiseRejectionEvent>> PromiseRejectionEve
PromiseRejectionEvent::PromiseRejectionEvent(JS::Realm& realm, FlyString const& event_name, PromiseRejectionEventInit const& event_init)
: DOM::Event(realm, event_name, event_init)
, m_promise(const_cast<JS::Promise*>(event_init.promise.cell()))
, m_promise(*event_init.promise)
, m_reason(event_init.reason)
{
}