Remove intermediate debugging from asc

This commit is contained in:
dcodeIO 2018-02-02 03:14:27 +01:00
parent 4736227879
commit 8d4be9a714

View File

@ -339,10 +339,9 @@ function processSourceMap(sourceMap, sourceMapURL) {
}); });
++readCount; ++readCount;
} }
if (found) { if (found)
generator.setSourceContent(name, text); generator.setSourceContent(name, text);
console.log(name + " ???"); else
} else
console.error("No source content found for file '" + name + "'."); console.error("No source content found for file '" + name + "'.");
}); });
return generator.toString(); return generator.toString();
@ -368,7 +367,8 @@ if (!args.noEmit) {
: null; : null;
var binary; var binary;
writeTime += measure(() => { writeTime += measure(() => {
binary = module.toBinary("http://127.0.0.1:8080/"+sourceMapURL); // FIXME: 'not a valid URL' in FF // FIXME: 'not a valid URL' in FF (wants http(s)://.../url)
binary = module.toBinary(sourceMapURL);
fs.writeFileSync(args.binaryFile, binary.output); fs.writeFileSync(args.binaryFile, binary.output);
}); });
++writeCount; ++writeCount;