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

Unified Diff: Source/bindings/core/v8/SharedPersistent.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/SharedPersistent.h
diff --git a/Source/bindings/core/v8/SharedPersistent.h b/Source/bindings/core/v8/SharedPersistent.h
index 5fd390c32bc5487c966168cdd4dfc576d18bf013..b66a50427fe23ed407f7f8ac83c2a5b24a800cd7 100644
--- a/Source/bindings/core/v8/SharedPersistent.h
+++ b/Source/bindings/core/v8/SharedPersistent.h
@@ -54,6 +54,11 @@ public:
bool isEmpty() { return m_value.isEmpty(); }
+ void setReference(const v8::Persistent<v8::Object>& parent, v8::Isolate* isolate)
+ {
+ m_value.setReference(parent, isolate);
+ }
+
bool operator==(const SharedPersistent<T>& other)
{
return m_value == other.m_value;
« no previous file with comments | « Source/bindings/core/v8/ScriptValue.h ('k') | Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698