title: Bluebird promise - then after finally
body: <p>I encountered some issue in Bluebird/Promises.
  For the Promise1 everything works fine either if call fullfill or reject. However when we return Promise2 in a finally block it works only for reject and for fullfil we get undefined in then's callback.</p>
  
  <pre><code>function getPromise1() {
      return new Promise(function(fulfill, reject) {
          fulfill("OK1");
      });
  }
  
  function getPromise2() {
      return new Promise(function(fulfill, reject) {
          fulfill("OK2");
      });
  }
  
  
  getPromise1()
      .then(function(c){
          console.log(c);
      })
      .catch(function(e) {
          console.log(e);
      })
      .finally(function() {
          return getPromise2();
      })
      .then(function(c){
          console.log(c);
      })
      .catch(function(e) {
          console.log(e);
      });
  </code></pre>
  
  <p>Output:</p>
  
  <p>OK1</p>
  
  <p>undefined</p>