From:  Jim Blandy <jimb@mozilla.com>
Date:  22 May 2013 13:00:36 Hong Kong Time
Newsgroup:  news.mozilla.org/mozilla.dev.js-sourcemap
Subject:  

Re: What should happen to errors in translation

NNTP-Posting-Host:  63.245.216.66

On 05/21/2013 01:16 AM, Peter van der Zee wrote:
> ftr, I was indeed talking about a bug in the compiler.
>
> `log("foo");`
> ->
> `console log("foo");`
>
> How can I tell that this is a problem in the compiler (missing dot in the
> above case) and not my code? Scale this up to complex real code...
>
> Since most-if-not-all vendors are watching, I think discussion about this
> is good to have to make sure this issue at least gets some attention :)
>
If I were developing a compiler, it would be nice to have (perhaps
provided by an add-on?) a side-by-side view of the true source, and the
(JavaScript) object code I generated from it.

One could even make a web page that accepts a script URL, fetches the
script, fetches any sourcemaps that refers to, fetches the original
files the source maps cite, and then plots it all up nicely.