Merge 714bcc0711 into 0f80b1058d
This commit is contained in:
commit
9611a5d677
|
|
@ -58,6 +58,15 @@ function SourceMap(options) {
|
||||||
sourceRoot : options.root
|
sourceRoot : options.root
|
||||||
});
|
});
|
||||||
var orig_map = options.orig && new MOZ_SourceMap.SourceMapConsumer(options.orig);
|
var orig_map = options.orig && new MOZ_SourceMap.SourceMapConsumer(options.orig);
|
||||||
|
|
||||||
|
// Copy across inline sourcesContent, if any
|
||||||
|
if (options.orig && options.orig.sourcesContent) {
|
||||||
|
var len = options.orig.sourcesContent.length;
|
||||||
|
for (var i = 0; i < len; i++) {
|
||||||
|
generator.setSourceContent(options.orig.sources[i], options.orig.sourcesContent[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function add(source, gen_line, gen_col, orig_line, orig_col, name) {
|
function add(source, gen_line, gen_col, orig_line, orig_col, name) {
|
||||||
if (orig_map) {
|
if (orig_map) {
|
||||||
var info = orig_map.originalPositionFor({
|
var info = orig_map.originalPositionFor({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user