fix regression: CLI options with hyphens like -b ascii-only (#1640)
fixes #1637
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user