diff options
-rw-r--r-- | test/reduce.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/reduce.js b/test/reduce.js index 5f192aca..bfc0c173 100644 --- a/test/reduce.js +++ b/test/reduce.js @@ -131,6 +131,7 @@ module.exports = function reduce_test(testcase, minify_options, reduce_options) case "delete": return; } + if (parent instanceof U.AST_VarDef && parent.name === node) return; // preserve for (var xxx; ...) if (parent instanceof U.AST_For && parent.init === node && node instanceof U.AST_Definitions) return node; // preserve for (xxx in ...) |