}
return scan_ref_scoped(node, descend, true);
});
+ tw.directives = Object.create(compressor.directives);
self.walk(tw);
// pass 2: for every used symbol we need to walk its
// initialization code to figure out if it uses other
expect_stdout: "PASS"
}
-issue_3192: {
+issue_3192_1: {
options = {
unused: true,
}
]
}
+issue_3192_2: {
+ options = {
+ keep_fargs: "strict",
+ unused: true,
+ }
+ input: {
+ "use strict";
+ (function(a) {
+ console.log(a = "foo", arguments[0]);
+ })("bar");
+ }
+ expect: {
+ "use strict";
+ (function() {
+ console.log("foo", arguments[0]);
+ })("bar");
+ }
+ expect_stdout: "foo bar"
+}
+
issue_3233: {
options = {
pure_getters: "strict",