From 2f40ed3c0959090a2ffe0c685f0e55b1b990d395 Mon Sep 17 00:00:00 2001 From: James Cheng Date: Tue, 28 Jul 2015 23:08:00 +0200 Subject: [PATCH] Bug 975246 - Part3 - Using nsRefPtr->* operator. r=nfroyd --- dom/promise/Promise.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dom/promise/Promise.cpp b/dom/promise/Promise.cpp index 4ab07d263d74..b49ea8cf2523 100644 --- a/dom/promise/Promise.cpp +++ b/dom/promise/Promise.cpp @@ -1512,9 +1512,7 @@ public: return false; } - // TODO Bug 975246 - nsRefPtr should support operator |nsRefPtr->*funcType|. - (workerPromise.get()->*mFunc)(aCx, - value); + (workerPromise->*mFunc)(aCx, value); // Release the Promise because it has been resolved/rejected for sure. mPromiseWorkerProxy->CleanUp(aCx);