| Index: third_party/WebKit/Source/core/events/PromiseRejectionEvent.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/PromiseRejectionEvent.cpp b/third_party/WebKit/Source/core/events/PromiseRejectionEvent.cpp
|
| index e0d7a937ea9539fb9f415b16bf2dcb232853dd8f..781eb432473beeb9e50576c9eeeaef9c403b923f 100644
|
| --- a/third_party/WebKit/Source/core/events/PromiseRejectionEvent.cpp
|
| +++ b/third_party/WebKit/Source/core/events/PromiseRejectionEvent.cpp
|
| @@ -12,7 +12,10 @@ PromiseRejectionEvent::PromiseRejectionEvent(
|
| ScriptState* state,
|
| const AtomicString& type,
|
| const PromiseRejectionEventInit& initializer)
|
| - : Event(type, initializer), m_scriptState(state) {
|
| + : Event(type, initializer),
|
| + m_scriptState(state),
|
| + m_promise(this),
|
| + m_reason(this) {
|
| ThreadState::current()->registerPreFinalizer(this);
|
| DCHECK(initializer.hasPromise());
|
| m_promise.set(initializer.promise().isolate(),
|
|
|