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

Unified Diff: Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp

Issue 1215813003: Correctly track lifetime of promise rejection events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 6 months 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
« no previous file with comments | « Source/bindings/core/v8/SharedPersistent.h ('k') | Source/core/events/PromiseRejectionEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp
diff --git a/Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp b/Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp
index e38f04cd07c2f28be04c6d9dc4b0f92057e3fdfb..34f289522a8577d5b885bda239146e7d5abf09ad 100644
--- a/Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp
@@ -8,6 +8,7 @@
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptState.h"
#include "bindings/core/v8/ScriptValue.h"
+#include "bindings/core/v8/ScriptWrappable.h"
#include "bindings/core/v8/V8Binding.h"
namespace blink {
@@ -25,4 +26,10 @@ void V8PromiseRejectionEvent::promiseAttributeGetterCustom(const v8::FunctionCal
v8SetReturnValue(info, promise.v8Value());
}
+void V8PromiseRejectionEvent::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scriptWrappable, const v8::Persistent<v8::Object>& wrapper)
+{
+ PromiseRejectionEvent* event = scriptWrappable->toImpl<PromiseRejectionEvent>();
+ event->setWrapperReference(isolate, wrapper);
+}
+
} // namespace blink
« no previous file with comments | « Source/bindings/core/v8/SharedPersistent.h ('k') | Source/core/events/PromiseRejectionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698