Change that introduces the compiler error draft
authorBotond Ballo <botond@mozilla.com>
Wed, 29 Jul 2020 17:04:12 -0400 (2020-07-29)
changeset 3095746 0f56cb097123712eb5d01f2edbec1fb69a65aa27
parent 3095745 63d0a684e68fef246e3f6f1f6a3e42b0a34c9462
child 3095747 ed43521a92760083f2950edfee5b93b0b04e1045
push id576485
push userbballo@mozilla.com
push dateWed, 29 Jul 2020 21:18:41 +0000 (2020-07-29)
treeherdertry@7a5ef90b2cc2 [default view] [failures only]
milestone80.0a1
Change that introduces the compiler error
dom/system/IOUtils.cpp
--- a/dom/system/IOUtils.cpp
+++ b/dom/system/IOUtils.cpp
@@ -273,37 +273,37 @@ already_AddRefed<Promise> IOUtils::Write
   opts.mNoOverwrite = aOptions.mNoOverwrite;
   if (aOptions.mBackupFile.WasPassed()) {
     opts.mBackupFile.emplace(aOptions.mBackupFile.Value());
   }
   if (aOptions.mTmpPath.WasPassed()) {
     opts.mTmpPath.emplace(aOptions.mTmpPath.Value());
   }
 
-  // return RunOnBackgroundThread<uint32_t>(promise, &WriteAtomicSync, destPath,
-  //                                       std::move(toWrite), std::move(opts));
+  return RunOnBackgroundThread<uint32_t>(promise, &WriteAtomicSync, destPath,
+                                         std::move(toWrite), std::move(opts));
 
-  InvokeAsync(bg, __func__,
+  /*InvokeAsync(bg, __func__,
               [destPath = nsString(aPath), toWrite = std::move(toWrite),
                opts = std::move(opts)]() {
                 MOZ_ASSERT(!NS_IsMainThread());
                 auto rv = WriteAtomicSync(destPath, toWrite, opts);
                 return ToMozPromise<IOWriteMozPromise, uint32_t, IOError>(
                     rv, __func__);
               })
       ->Then(
           GetCurrentSerialEventTarget(), __func__,
           [promise = RefPtr(promise)](const uint32_t& aBytesWritten) {
             promise->MaybeResolve(aBytesWritten);
           },
           [promise = RefPtr(promise)](const IOError& aError) {
             RejectJSPromise(promise, aError);
           });
 
-  return promise.forget();
+  return promise.forget();*/
 }
 
 /* static */
 already_AddRefed<Promise> IOUtils::Move(GlobalObject& aGlobal,
                                         const nsAString& aSourcePath,
                                         const nsAString& aDestPath,
                                         const MoveOptions& aOptions) {
   RefPtr<Promise> promise = CreateJSPromise(aGlobal);