Bug 1294187 - correctly define Task at top level; r?bgrins draft
authorTom Tromey <tom@tromey.com>
Wed, 10 Aug 2016 12:44:39 -0600
changeset 399259 e2fc7e0e6c036493cb200948bee22f0eea6df710
parent 399191 531100c1d950c8857dda172573fbd23360f7619b
child 527879 670d196830630b04178de451faa5b2996cc96534
push id25775
push userbmo:ttromey@mozilla.com
push dateWed, 10 Aug 2016 18:52:43 +0000
reviewersbgrins
bugs1294187
milestone51.0a1
Bug 1294187 - correctly define Task at top level; r?bgrins MozReview-Commit-ID: 30xKMWI1CnO
devtools/shared/task.js
--- a/devtools/shared/task.js
+++ b/devtools/shared/task.js
@@ -131,17 +131,17 @@ function isGenerator(value) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
 //// Task
 
 /**
  * This object provides the public module functions.
  */
-this.Task = {
+var Task = {
   /**
    * Creates and starts a new task.
    *
    * @param task
    *        - If you specify a generator function, it is called with no
    *          arguments to retrieve the associated iterator.  The generator
    *          function is a task, that is can yield promise objects to wait
    *          upon.