Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: third_party/WebKit/Source/core/events/PromiseRejectionEvent.cpp

Issue 2474693002: [wrapper-tracing] Support for incrementally tracing ScopedPersistent (Closed)
Patch Set: Added bailout for tests when the flag is off Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698