Merge branch 'master' into harmony-v3.0.13

This commit is contained in:
alexlamsl
2017-05-29 10:58:05 +08:00
10 changed files with 141 additions and 88 deletions

View File

@@ -552,4 +552,13 @@ describe("bin/uglifyjs", function () {
done();
});
});
it("Should print supported options on invalid option syntax", function(done) {
var command = uglifyjscmd + " test/input/comments/filter.js -b ascii-only";
exec(command, function (err, stdout, stderr) {
assert.ok(err);
assert.strictEqual(stdout, "");
assert.ok(/^Supported options:\n\{[^}]+}\nERROR: `ascii-only` is not a supported option/.test(stderr), stderr);
done();
});
});
});