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

Unified Diff: Source/bindings/core/v8/ScopedPersistent.h

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
Index: Source/bindings/core/v8/ScopedPersistent.h
diff --git a/Source/bindings/core/v8/ScopedPersistent.h b/Source/bindings/core/v8/ScopedPersistent.h
index 25856145ec8fa79b36a14169a981605c0aebe3d8..270d60e470eb81d6a1fac5d1961659200900b3b8 100644
--- a/Source/bindings/core/v8/ScopedPersistent.h
+++ b/Source/bindings/core/v8/ScopedPersistent.h
@@ -84,6 +84,11 @@ public:
m_handle.Reset();
}
+ void setReference(const v8::Persistent<v8::Object>& parent, v8::Isolate* isolate)
+ {
+ isolate->SetReference(parent, m_handle);
+ }
+
bool operator==(const ScopedPersistent<T>& other)
{
return m_handle == other.m_handle;
« no previous file with comments | « LayoutTests/fast/dom/promise-rejection-events-lifetime.html ('k') | Source/bindings/core/v8/ScriptPromise.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698