From 8d4be9a714ae9973fd209a6226a3472629c5a7a7 Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Fri, 2 Feb 2018 03:14:27 +0100 Subject: [PATCH] Remove intermediate debugging from asc --- bin/asc.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/asc.js b/bin/asc.js index b108a98a..1982ea12 100644 --- a/bin/asc.js +++ b/bin/asc.js @@ -339,10 +339,9 @@ function processSourceMap(sourceMap, sourceMapURL) { }); ++readCount; } - if (found) { + if (found) generator.setSourceContent(name, text); - console.log(name + " ???"); - } else + else console.error("No source content found for file '" + name + "'."); }); return generator.toString(); @@ -368,7 +367,8 @@ if (!args.noEmit) { : null; var binary; 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); }); ++writeCount;