diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-04-12 21:56:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-12 21:56:27 +0800 |
commit | 2244743545e8e5a75b4cce219605588cd29581b1 (patch) | |
tree | fc5b7077957e20489fada1b3388e39be2f958404 /bin/uglifyjs | |
parent | 04b89645058d85b8b67bb94fb9e39252160a0959 (diff) | |
download | tracifyjs-2244743545e8e5a75b4cce219605588cd29581b1.tar.gz tracifyjs-2244743545e8e5a75b4cce219605588cd29581b1.zip |
convert `AST_Seq` from binary tree to array (#1460)
- rename `AST_Seq` to `AST_Sequence`
- raise default sequences_limit from 200 to 800
Diffstat (limited to 'bin/uglifyjs')
-rwxr-xr-x | bin/uglifyjs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs index 635ca365..ef776492 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -569,7 +569,7 @@ function getOptions(flag, constants) { } } ast.walk(new UglifyJS.TreeWalker(function(node){ - if (node instanceof UglifyJS.AST_Seq) return; // descend + if (node instanceof UglifyJS.AST_Sequence) return; // descend if (node instanceof UglifyJS.AST_Assign) { var name = node.left.print_to_string().replace(/-/g, "_"); var value = node.right; @@ -583,7 +583,7 @@ function getOptions(flag, constants) { ret[name] = true; return true; // no descend } - print_error(node.TYPE) + print_error(node.TYPE); print_error("Error parsing arguments for flag `" + flag + "': " + x); process.exit(1); })); |