title: test works with jasmine-node, but not and with jasmine
body: <p>I have a object that is subscribed to the uncaught error event and I am trying to test its behaviour. First I tried with jasmine-node, but now when I am trying to go with jasmine I found trouble. Could anyone help me. </p>
  
  <pre><code>describe('Constructor tests', function () {
      it('error is passed to the callback', function (done) {
      const error = new Error("testError-0");
  
      let errorHandler = new AllErrorHandler((arg1) =&gt; {
          expect(arg1).toBe(error);
          errorHandler.dispose();
          done();
      });
  
      setTimeout(() =&gt; {
          throw error;
      }, 0)
  });
  </code></pre>
  
  <p>Thanks in advance.</p>