[Pkg-javascript-commits] [uglifyjs] 42/77: fixes issue #621	SourceMap toString JSON format
    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 5c02d65ddb8d315d53a4356c038b461ddb1cb029
Author: Bryce Cronkite-Ratcliff <brycecr at Bryces-MacBook-Pro.local>
Date:   Sat Jan 24 00:24:08 2015 -0800
    fixes issue #621 SourceMap toString JSON format
    
    The correct format of a sourcemap is acquired
    from a mozilla source map generator by calling
    toJSON on this object. This patch alters the
    toString function on mozilla generators to print
    the format that is to spec instead of the generator's
    internal representation of itself.
---
 lib/sourcemap.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sourcemap.js b/lib/sourcemap.js
index 3998e40..a67011f 100644
--- a/lib/sourcemap.js
+++ b/lib/sourcemap.js
@@ -87,6 +87,6 @@ function SourceMap(options) {
     return {
         add        : add,
         get        : function() { return generator },
-        toString   : function() { return generator.toString() }
+        toString   : function() { return JSON.stringify(generator.toJSON()); }
     };
 };
-- 
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