Skip to content

Commit

Permalink
fix(unassertify): copy sourceRoot even if it is an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
twada committed Dec 15, 2015
1 parent d912420 commit d687a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function mergeSourceMap (incomingSourceMap, outgoingSourceMap) {
}

function copyPropertyIfExists (name, from, to) {
if (from[name]) {
if (from.hasOwnProperty(name)) {
to.setProperty(name, from[name]);
}
}
Expand Down

0 comments on commit d687a4b

Please sign in to comment.