title: Want an exception upon BIRT JavaScript errors
body: <p>I have a report in BIRT that has non-trivial JavaScript (scripted data source). The JavaScript is all a bit wobbly, and suspect to regress. For that reason and others I have written a JUnit test that populates the data, runs the report (<code>createRunAndRenderTask</code> and run that task) and do some validation on the resulting report.</p>
  
  <p>Obviously this test will fail when the BIRT engine throws any exceptions. However, upon JavaScript errors in the report, no exceptions are thrown. And that does not feel good. Can I change this somehow to have the BIRT engine throw exceptions upon JavaScript errors?</p>
  
  <p>I tried this by having a host of JavaScript errors during development of the report. Think of typos in the scripted data source. They are spit out in the console, but no exceptions.</p>
  
  <p>E.g.:</p>
  
  <pre><code>&lt;method name="open"&gt;&lt;![CDATA[count = 0;
  this should break]]&gt;&lt;/method&gt;
  </code></pre>
  
  <p>This shows in the console:</p>
  
  <pre><code>... Fail to execute script in function __bm_OPEN(). Source:
  ------
  " + count = 0;
  
  this should break + "
  -----
  A BIRT exception occurred. See next exception for more information.
  ReferenceError: "this should break" is not defined. (/report/data-sets/script-data-set[@id="9"]/method[@name="open"]#3)
  </code></pre>
  
  <p>Thank you for your suggestions!</p>