diff options
author | Bryce Cronkite-Ratcliff <brycecr@Bryces-MacBook-Pro.local> | 2015-01-24 00:24:08 -0800 |
---|---|---|
committer | Bryce Cronkite-Ratcliff <brycecr@Bryces-MacBook-Pro.local> | 2015-01-24 00:33:02 -0800 |
commit | 5c02d65ddb8d315d53a4356c038b461ddb1cb029 (patch) | |
tree | 4d63054f6e282ba723e9ef30eb22c2af6246448d | |
parent | d36067cd35fbe35fa35ab2e8a250835a2f7ff5a2 (diff) | |
download | tracifyjs-5c02d65ddb8d315d53a4356c038b461ddb1cb029.tar.gz tracifyjs-5c02d65ddb8d315d53a4356c038b461ddb1cb029.zip |
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.
-rw-r--r-- | lib/sourcemap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sourcemap.js b/lib/sourcemap.js index 3998e405..a67011f0 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()); } }; }; |