[Pkg-javascript-commits] [uglifyjs] 43/77: Make empty source map values more reasonable in .minify()
Jonas Smedegaard
dr at jones.dk
Tue May 19 00:02:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v2.4.18
in repository uglifyjs.
commit d78ae20e64a6449b63ac86c225f0fe7faae353bd
Author: Richard van Velzen <rvanvelzen1 at gmail.com>
Date: Mon Jan 26 12:07:44 2015 +0100
Make empty source map values more reasonable in .minify()
`"null"` isn't a very usable value. `JSON.parse(null)` also gives `null`, which makes this fully backwards compatible.
Closes #616
---
tools/node.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tools/node.js b/tools/node.js
index 4bc8517..1ae69da 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -133,9 +133,14 @@ exports.minify = function(files, options) {
stream += "\n//# sourceMappingURL=" + options.outSourceMap;
}
+ var source_map = output.source_map;
+ if (source_map) {
+ source_map = source_map + "";
+ }
+
return {
code : stream + "",
- map : output.source_map + ""
+ map : source_map
};
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list