| 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..2a854b25e1bed7b579b493278228e45207e51973 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(),
|
| @@ -84,8 +87,8 @@ DEFINE_TRACE(PromiseRejectionEvent) {
|
| }
|
|
|
| DEFINE_TRACE_WRAPPERS(PromiseRejectionEvent) {
|
| - visitor->traceWrappers(&m_promise);
|
| - visitor->traceWrappers(&m_reason);
|
| + visitor->traceWrappers(m_promise);
|
| + visitor->traceWrappers(m_reason);
|
| }
|
|
|
| } // namespace blink
|
|
|