When a compressed/preprocessed/translated JS file contains a source map
URL, the source map can provide a new URL for the original source code.
So as long as we use distinct URLs for the preprocessed and original
("pre-preprocessed"?) sources, and ensure both can be followed, I think
the console links would work out.

What's more interesting - Brendan said this briefly - is that source
maps re-introduce the potential for a single JSScript to have code
attributed to several different URLs. Such source maps describe the
results of concatenating several .js files, for example. So it won't
make sense to ask for the URL of a JSScript: one will ask for the URL of
a <JSScript, bytecode offset> pair.
_______________________________________________
dev-tech-js-engine-internals mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to