Huáng Jùnliàng fc5365fe4a
Fix parameter expression get binding (#10912)
* fix: parameter expression closure should not have access to the declaration inside function body

* fix: renameVisitor should skip when a pattern is a scope

* address review comments
2019-12-24 15:18:46 -05:00

12 lines
83 B
JavaScript

let z = "outside";
function r({
a: b
}, {
[z]: {
c
} = z
}) {
g(z);
}