This commit is contained in:
cilame 2021-11-20 21:53:52 +08:00
parent fc5cfe1efa
commit 628006abc2

View File

@ -32489,11 +32489,13 @@ function MergeObj(path) {
} }
}) })
paths.map(function(refer_path) { paths.map(function(refer_path) {
try{
let bindpath = refer_path.parentPath; let bindpath = refer_path.parentPath;
if (!t.isVariableDeclarator(bindpath.node)) return; if (!t.isVariableDeclarator(bindpath.node)) return;
let bindname = bindpath.node.id.name; let bindname = bindpath.node.id.name;
bindpath.scope.rename(bindname, name, bindpath.scope.block); bindpath.scope.rename(bindname, name, bindpath.scope.block);
bindpath.remove(); bindpath.remove();
}catch(e){}
}); });
} }