Merge 96767e2f35 into 0f80b1058d
This commit is contained in:
commit
4a459b9870
|
|
@ -53,11 +53,13 @@ function SourceMap(options) {
|
|||
orig_line_diff : 0,
|
||||
dest_line_diff : 0,
|
||||
});
|
||||
var generator = new MOZ_SourceMap.SourceMapGenerator({
|
||||
var orig_map = options.orig && new MOZ_SourceMap.SourceMapConsumer(options.orig);
|
||||
var generator = options.orig
|
||||
? MOZ_SourceMap.SourceMapGenerator.fromSourceMap(orig_map)
|
||||
: new MOZ_SourceMap.SourceMapGenerator({
|
||||
file : options.file,
|
||||
sourceRoot : options.root
|
||||
});
|
||||
var orig_map = options.orig && new MOZ_SourceMap.SourceMapConsumer(options.orig);
|
||||
function add(source, gen_line, gen_col, orig_line, orig_col, name) {
|
||||
if (orig_map) {
|
||||
var info = orig_map.originalPositionFor({
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user