Merge pull request #439 from Arnavion/null-source-in-sourcemap

Handle the case when SourceMapConsumer.originalPositionFor returns null source.
This commit is contained in:
Mihai Bazon
2014-03-03 09:19:39 +02:00
2 changed files with 4 additions and 1 deletions

View File

@@ -64,6 +64,9 @@ function SourceMap(options) {
line: orig_line, line: orig_line,
column: orig_col column: orig_col
}); });
if (info.source === null) {
return;
}
source = info.source; source = info.source;
orig_line = info.line; orig_line = info.line;
orig_col = info.column; orig_col = info.column;

View File

@@ -16,7 +16,7 @@
}, },
"dependencies": { "dependencies": {
"async" : "~0.2.6", "async" : "~0.2.6",
"source-map" : "~0.1.31", "source-map" : "~0.1.33",
"optimist" : "~0.3.5", "optimist" : "~0.3.5",
"uglify-to-browserify": "~1.0.0" "uglify-to-browserify": "~1.0.0"
}, },