sym = self.def_global(node);
} else if (name == "arguments"
&& sym.orig[0] instanceof AST_SymbolFunarg
+ && !(sym.orig[1] instanceof AST_SymbolFunarg)
&& !(sym.scope instanceof AST_Arrow)) {
var parent = tw.parent();
if (parent instanceof AST_Assign && parent.left === node
}
expect_stdout: "PASS"
}
+
+issue_4413: {
+ options = {
+ reduce_vars: true,
+ unused: true,
+ }
+ input: {
+ console.log(function f(arguments) {
+ var arguments = function() {};
+ return arguments.length;
+ }());
+ }
+ expect: {
+ console.log(function(arguments) {
+ return function() {}.length;
+ }());
+ }
+ expect_stdout: "0"
+}