title: Can not get methods on instantiated class
body: <p>I have this class definition , create instances but can not get methods inside class definition.</p>
  
  <pre><code>export class Partner {
    constructor (instructorPeer, id) {
      this.instructorPeer = instructorPeer;
      this.id = id;
      this.basePath = `/partners/${this.id}`;
    }
  
    async call (path, params) {
      return this.instructorPeer.call (
        `/partners/${this.id}/methods/${path}`,
        params
      );
    }
  </code></pre>
  
  <p>This code is from another file which creates objects with partner class. I create objects wit new partner</p>
  
  <p>Why there is no method on returned newPartner object ? How can I reach that cal method then ?</p>
  
  <pre><code>const partners = {chrome: [], firefox: [], safari: [], ie: []};
  
  const self = this;
  const appropriatePartners = await this.retrievePartners (partnerInfo);
  </code></pre>
  
  <p>async createSession (partnerInfo) {
      const partners = {chrome: [], firefox: [], safari: [], ie: []};</p>
  
  <pre><code>const self = this;
  const appropriatePartners = await this.retrievePartners (partnerInfo);
  Object.keys (appropriatePartners).forEach (function (key) {
    appropriatePartners[key].forEach (partner =&gt; {
      let newPartner = [new Partner (self.instructorPeer, partner.id)];
      partners[key].push (newPartner);
    });
  });
  
  return new Session (partners);
  </code></pre>
  
  <p>}</p>
  
  <p>And this is also another file which uses objects returned from there.</p>
  
  <pre><code>const partners = await getTestPartners (capabilities);
  partners.chrome[0].call ('connect', myparams);
  </code></pre>