diff options
author | kzc <kzc@users.noreply.github.com> | 2017-03-23 23:55:03 -0400 |
---|---|---|
committer | Alex Lam S.L <alexlamsl@gmail.com> | 2017-03-24 11:55:03 +0800 |
commit | 79334dda105f772b7a5bfe13608a193c22537a7b (patch) | |
tree | c3e5e82d5c3d7223bc94a1da5d3f7f76575a1dbc /lib | |
parent | e918748d88e39c6f2142b01e71c3e580d790d642 (diff) | |
download | tracifyjs-79334dda105f772b7a5bfe13608a193c22537a7b.tar.gz tracifyjs-79334dda105f772b7a5bfe13608a193c22537a7b.zip |
fix regression: CLI options with hyphens like -b ascii-only (#1640)
fixes #1637
Diffstat (limited to 'lib')
-rw-r--r-- | lib/parse.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/parse.js b/lib/parse.js index 4d37b85e..99d7ce09 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -695,6 +695,7 @@ function parse($TEXT, options) { html5_comments : true, bare_returns : false, shebang : true, + cli : false, }); var S = { @@ -1501,6 +1502,7 @@ function parse($TEXT, options) { }; function is_assignable(expr) { + if (options.cli) return true; return expr instanceof AST_PropAccess || expr instanceof AST_SymbolRef; }; |