mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
use btoa as base64 encoder, inspired by @ashtuchkin
This commit is contained in:
parent
fd0b1ffc4d
commit
c24e957f17
6 changed files with 57 additions and 10 deletions
|
@ -113,7 +113,7 @@
|
|||
|
||||
})();
|
||||
|
||||
exports.generateV3SourceMap = function(sourceMap, options) {
|
||||
exports.generateV3SourceMap = function(sourceMap, options, code) {
|
||||
var answer, generatedFile, lastGeneratedColumnWritten, lastSourceColumnWritten, lastSourceLineWritten, mappings, needComma, sourceFiles, sourceRoot, writingGeneratedLine;
|
||||
if (options == null) {
|
||||
options = {};
|
||||
|
@ -155,6 +155,9 @@
|
|||
names: [],
|
||||
mappings: mappings
|
||||
};
|
||||
if (options.inline) {
|
||||
answer.sourcesContent = [code];
|
||||
}
|
||||
return JSON.stringify(answer, null, 2);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue