We use a rejected value, the ErrorReporter is just being used to print the
error to the console.

But the bootstrap / WebPageTranscoder does not handle the error correctly I
guess.


On Wed, May 14, 2014 at 2:04 PM, Erik Arvidsson <notifications@github.com>wrote:

> In bin/traceur.js:
>
> > @@ -22018,7 +22018,7 @@ System.register("traceur@0.0.42/src/runtime/InternalLoader", [], function() {
> >            result = codeUnit.evaluate();
> >          } catch (ex) {
> >            codeUnit.error = ex;
> > -          this.reporter.reportError(null, String(ex));
> > +          this.reporter.reportError(null, String(ex.stack));
>
> Maybe the real issue is that we use the error reporter when we report the
> error instead of the rejected value (which should always be an Error
> object)?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/google/traceur-compiler/pull/1019/files#r12661350>
> .
>