Reviewers: ,

Message:
I'm from the Chromium Extensions team and would like to replace our home-grown use of Persistent with UniquePersistent, and this would make it even easier to
clean up.

Description:
Add MoveOnlyTypeForCPP03 to UniquePersistent for compatibility with Chromium.

Please review this at https://codereview.chromium.org/986463005/

Base URL: https://github.com/v8/v8.git@master

Affected files (+5, -0 lines):
  M include/v8.h


Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index e4a8be6aea4f63071d21b633c815f1ac306f23f4..04805e47630b04e221f592fb27fdfde521a76063 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -793,6 +793,11 @@ class UniquePersistent : public PersistentBase<T> {
    */
   UniquePersistent Pass() { return UniquePersistent(RValue(this)); }

+  /*
+   * For compatibility with Chromium's base::Bind (base::Passed).
+   */
+  typedef void MoveOnlyTypeForCPP03;
+
  private:
   UniquePersistent(UniquePersistent&);
   void operator=(UniquePersistent&);


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to