From bd116f128e84a7a26a031878cd81ef57d13f3903 Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Sat, 15 Apr 2017 20:46:57 +0800 Subject: [PATCH] remove deprecated hack minor tweaks to docs --- README.md | 2 +- lib/parse.js | 2 -- test/ufuzz.js | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cc9bf502..40b2e1a0 100644 --- a/README.md +++ b/README.md @@ -856,7 +856,7 @@ which we care about here are `source_map` and `comments`. In order to keep certain comments in the output you need to pass the `comments` option. Pass a RegExp (as string starting and closing with `/` or pass a RegExp object), a boolean or a function. Stringified options -`all` and `some` can be passed too, where `some` behaves like it's cli +`all` and `some` can be passed too, where `some` behaves like it's CLI equivalent `--comments` without passing a value. If you pass a RegExp, only those comments whose body matches the RegExp will be kept. Note that body means without the initial `//` or `/*`. If you pass a function, it will be diff --git a/lib/parse.js b/lib/parse.js index c7d75802..27351b53 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -689,7 +689,6 @@ function parse($TEXT, options) { options = defaults(options, { bare_returns : false, - cli : false, expression : false, filename : null, html5_comments : true, @@ -1502,7 +1501,6 @@ function parse($TEXT, options) { }; function is_assignable(expr) { - if (options.cli) return true; return expr instanceof AST_PropAccess || expr instanceof AST_SymbolRef; }; diff --git a/test/ufuzz.js b/test/ufuzz.js index 712ee512..67d65045 100644 --- a/test/ufuzz.js +++ b/test/ufuzz.js @@ -2,7 +2,7 @@ // derived from https://github.com/qfox/uglyfuzzer by Peter van der Zee "use strict"; -// check both cli and file modes of nodejs (!). See #1695 for details. and the various settings of uglify. +// check both CLI and file modes of nodejs (!). See #1695 for details. and the various settings of uglify. // bin/uglifyjs s.js -c && bin/uglifyjs s.js -c passes=3 && bin/uglifyjs s.js -c passes=3 -m // cat s.js | node && node s.js && bin/uglifyjs s.js -c | node && bin/uglifyjs s.js -c passes=3 | node && bin/uglifyjs s.js -c passes=3 -m | node