aboutsummaryrefslogtreecommitdiff
path: root/lib/sourcemap.js
diff options
context:
space:
mode:
authorJacob Kristhammar <kristhammar@gmail.com>2014-09-09 13:02:50 +0200
committerJacob Kristhammar <kristhammar@gmail.com>2014-09-09 13:02:50 +0200
commit21b3c890a1dab21156f358bf388a2f9f507d1711 (patch)
tree649d9d65f22b44116600fa323774a458d53e1f56 /lib/sourcemap.js
parent4c64554808e0805b86893704dc87df9ec449961a (diff)
downloadtracifyjs-21b3c890a1dab21156f358bf388a2f9f507d1711.tar.gz
tracifyjs-21b3c890a1dab21156f358bf388a2f9f507d1711.zip
Use uglify source map token names if missing
Diffstat (limited to 'lib/sourcemap.js')
-rw-r--r--lib/sourcemap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sourcemap.js b/lib/sourcemap.js
index 663ef12e..948e3b39 100644
--- a/lib/sourcemap.js
+++ b/lib/sourcemap.js
@@ -70,7 +70,7 @@ function SourceMap(options) {
source = info.source;
orig_line = info.line;
orig_col = info.column;
- name = info.name;
+ name = info.name || name;
}
generator.addMapping({
generated : { line: gen_line + options.dest_line_diff, column: gen_col },