Add MoveOnlyTypeForCPP03 to UniquePersistent for compatibility with Chromium.
authorkalman <kalman@chromium.org>
Fri, 6 Mar 2015 16:39:02 +0000 (08:39 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 6 Mar 2015 16:39:16 +0000 (16:39 +0000)
R=dcarney@chromium.org

Review URL: https://codereview.chromium.org/986463005

Cr-Commit-Position: refs/heads/master@{#27049}

include/v8.h

index 2b69fc2..446ba87 100644 (file)
@@ -866,6 +866,11 @@ class Global : public PersistentBase<T> {
    */
   Global Pass() { return static_cast<Global&&>(*this); }
 
+  /*
+   * For compatibility with Chromium's base::Bind (base::Passed).
+   */
+  typedef void MoveOnlyTypeForCPP03;
+
  private:
   Global(Global&) = delete;
   void operator=(Global&) = delete;