remove blanket safeguard from source-map (#3391)
Things has stabilised since 80a18fe2fa, so it makes sense to remove the unconditional masking for ease of debugging.
This commit is contained in:
@@ -217,23 +217,12 @@ function OutputStream(options) {
|
|||||||
|
|
||||||
var flush_mappings = mappings ? function() {
|
var flush_mappings = mappings ? function() {
|
||||||
mappings.forEach(function(mapping) {
|
mappings.forEach(function(mapping) {
|
||||||
try {
|
|
||||||
options.source_map.add(
|
options.source_map.add(
|
||||||
mapping.token.file,
|
mapping.token.file,
|
||||||
mapping.line, mapping.col,
|
mapping.line, mapping.col,
|
||||||
mapping.token.line, mapping.token.col,
|
mapping.token.line, mapping.token.col,
|
||||||
!mapping.name && mapping.token.type == "name" ? mapping.token.value : mapping.name
|
!mapping.name && mapping.token.type == "name" ? mapping.token.value : mapping.name
|
||||||
);
|
);
|
||||||
} catch(ex) {
|
|
||||||
AST_Node.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]", {
|
|
||||||
file: mapping.token.file,
|
|
||||||
line: mapping.token.line,
|
|
||||||
col: mapping.token.col,
|
|
||||||
cline: mapping.line,
|
|
||||||
ccol: mapping.col,
|
|
||||||
name: mapping.name || ""
|
|
||||||
})
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
mappings = [];
|
mappings = [];
|
||||||
} : noop;
|
} : noop;
|
||||||
|
|||||||
Reference in New Issue
Block a user