[Pkg-mozext-commits] [adblock-plus] 07/74: Issue 1602 - Fixed generator syntax mistakenly applied on outer function

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 12:07:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 01ebe7d14f77caa377d238c84f8627d77d72d0e7
Author: Sebastian Noack <sebastian at adblockplus.org>
Date:   Wed Apr 1 11:40:45 2015 +0200

    Issue 1602 - Fixed generator syntax mistakenly applied on outer function
---
 lib/io.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/io.js b/lib/io.js
index 9c500b7..e1f440d 100644
--- a/lib/io.js
+++ b/lib/io.js
@@ -69,7 +69,7 @@ let IO = exports.IO =
    * each line read and with a null parameter once the read operation is done.
    * The callback will be called when the operation is done.
    */
-  readFromFile: function*(/**nsIFile*/ file, /**Object*/ listener, /**Function*/ callback)
+  readFromFile: function(/**nsIFile*/ file, /**Object*/ listener, /**Function*/ callback)
   {
     try
     {
@@ -150,7 +150,7 @@ let IO = exports.IO =
       };
 
       let decoder = new TextDecoder();
-      Task.spawn(function()
+      Task.spawn(function*()
       {
         if (firstRead && Services.vc.compare(Utils.platformVersion, "23.0a1") <= 0)
         {
@@ -194,13 +194,13 @@ let IO = exports.IO =
    * Writes string data to a file in UTF-8 format asynchronously. The callback
    * will be called when the write operation is done.
    */
-  writeToFile: function*(/**nsIFile*/ file, /**Iterator*/ data, /**Function*/ callback)
+  writeToFile: function(/**nsIFile*/ file, /**Iterator*/ data, /**Function*/ callback)
   {
     try
     {
       let encoder = new TextEncoder();
 
-      Task.spawn(function()
+      Task.spawn(function*()
       {
         // This mimics OS.File.writeAtomic() but writes in chunks.
         let tmpPath = file.path + ".tmp";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list