From badad1a08ec9b3b87ec7bf6f5dd586a830bc37a6 Mon Sep 17 00:00:00 2001 From: b-fuse Date: Sat, 31 Mar 2018 05:16:20 -0400 Subject: [PATCH] support older than node 8.5 --- test/mocha/cli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/mocha/cli.js b/test/mocha/cli.js index c52d2bb6..df5b81f7 100644 --- a/test/mocha/cli.js +++ b/test/mocha/cli.js @@ -108,7 +108,7 @@ describe("bin/uglifyjs", function () { } var command = [ uglifyjscmd, - "--source-map", "content=" + mapFile, + "--source-map", "content=" + mapFile + '"', "--source-map", "url=inline" ].join(" "); @@ -119,7 +119,7 @@ describe("bin/uglifyjs", function () { done(); }); setTimeout(function() { - fs.copyFileSync("test/input/pr-3040/input.js.map", mapFile); + fs.writeFileSync(mapFile, read("test/input/pr-3040/input.js.map")); child.stdin.end(read("test/input/pr-3040/input.js")); }, 1000); });