How do i use UglifyJs to 'compile' my Javascript code and not just minify it
<p>First of all, I know javascript isnt compiled. Uglifyjs acts as a compiler to spot out possible errors...now for my question</p>

<p>I just downloaded/installed uglifyjs <a href="https://github.com/mishoo/UglifyJS" rel="nofollow">https://github.com/mishoo/UglifyJS</a> . I want to to compile my javascript code before minifying it. I have a fle called badjs.js and here it is:</p>

<pre><code>    var a=10  //notice no semicolon
    a = b + 3;   // b is not declared
    alert('the value of a is ' + a);
</code></pre>

<p>The first 2 lines of badjs.js should cause uglifyjs to bark at me, but it doesn't. I run this:</p>

<pre><code>  uglifyjs badjs.js
</code></pre>

<p>All it does is just output the minified version. How do i tell uglifyjs to notify me of errors? Thanks</p>
